#include "CeresEngine/Macros.hpp"
#include <mutex>
#include <shared_mutex>
#include <thread>
#include <condition_variable>
Go to the source code of this file.
|
| using | CeresEngine::Thread = std::thread |
| | The class thread represents a single thread of execution.
|
| |
| using | CeresEngine::Mutex = std::mutex |
| | The Mutex class is a synchronization primitive that can be used to protect shared data from being simultaneously accessed by multiple threads.
|
| |
| using | CeresEngine::TimedMutex = std::timed_mutex |
| | The TimedMutex class is a synchronization primitive that can be used to protect shared data from being simultaneously accessed by multiple threads.
|
| |
| using | CeresEngine::RecursiveMutex = std::recursive_mutex |
| | The RecursiveMutex class is a synchronization primitive that can be used to protect shared data from being simultaneously accessed by multiple threads.
|
| |
| using | CeresEngine::RecursiveTimedMutex = std::recursive_timed_mutex |
| | The RecursiveTimedMutex class is a synchronization primitive that can be used to protect shared data from being simultaneously accessed by multiple threads.
|
| |
| using | CeresEngine::SharedMutex = std::shared_mutex |
| | The SharedMutex class is a synchronization primitive that can be used to protect shared data from being simultaneously accessed by multiple threads.
|
| |
| using | CeresEngine::SharedTimedMutex = std::shared_timed_mutex |
| | The SharedTimedMutex class is a synchronization primitive that can be used to protect shared data from being simultaneously accessed by multiple threads.
|
| |
| using | CeresEngine::ConditionVariable = std::condition_variable |
| | The condition_variable class is a synchronization primitive that can be used to block a thread, or multiple threads at the same time, until another thread both modifies a shared variable (the condition), and notifies the condition_variable.
|
| |
|
| template<CLockedObject... Ts, typename Func > |
| decltype(auto) | CeresEngine::lock (Func &&func, Ts &... objects) |
| |
| template<typename T , typename Mutex , typename Func > |
| decltype(auto) | CeresEngine::lock (LockedObject< T, Mutex > &object, Func &&func) |
| | Executes a function Func within a synchronized block.
|
| |
| template<typename T , typename Mutex , typename Func > |
| decltype(auto) | CeresEngine::lock (const LockedObject< T, Mutex > &object, Func &&func) |
| | Executes a function Func within a synchronized block.
|
| |