Nebula
Loading...
Searching...
No Matches
assertingmutex.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
9//------------------------------------------------------------------------------
10#include <atomic>
11namespace Threading
12{
13
15{
16public:
21
23 void Lock();
25 void Unlock();
26private:
27 std::atomic_int locked;
28};
29
47
48} // namespace Threading
Definition assertingmutex.h:15
~AssertingMutex()
destructor
Definition assertingmutex.cc:24
void Unlock()
unlock mutex
Definition assertingmutex.cc:42
std::atomic_int locked
Definition assertingmutex.h:27
AssertingMutex()
constructor
Definition assertingmutex.cc:15
void Lock()
lock mutex
Definition assertingmutex.cc:33
The Jobs2 system provides a set of threads and a pool of jobs from which threads can pickup work.
Definition jobs2.h:16
Definition assertingmutex.h:31
AssertingMutex * mutex
Definition assertingmutex.h:45
~AssertingScope()
destructor
Definition assertingmutex.h:40
AssertingScope(AssertingMutex *mutex)
constructor
Definition assertingmutex.h:33