CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::SinglethreadPolicy Struct Referencefinal

Policy for single threaded use of events. More...

#include <CeresEngine/Foundation/Event.hpp>

Classes

struct  MutexLockType
 Dummy lock type, that doesn't do any locking. More...
 
struct  MutexType
 Dummy mutex type that doesn't do anything. More...
 

Static Public Member Functions

static constexpr void yield () noexcept
 Dummy implementation of thread yielding, that doesn't do any actual yielding.
 

Detailed Description

Policy for single threaded use of events.

This policy provides dummy implementations for mutex and lock types, resulting in that no synchronization will take place.

This policy is used in the UnsafeEvent type provided by the library.

Member Function Documentation

◆ yield()

static constexpr void CeresEngine::SinglethreadPolicy::yield ( )
inlinestaticconstexprnoexcept

Dummy implementation of thread yielding, that doesn't do any actual yielding.


The documentation for this struct was generated from the following file: