OpenTTD
|
Mutex that doesn't do locking because it ain't needed when there're no threads. More...
Public Member Functions | |
virtual void | BeginCritical (bool allow_recursive=false) |
Begin the critical section. | |
virtual void | EndCritical (bool allow_recursive=false) |
End of the critical section. | |
virtual void | WaitForSignal () |
Wait for a signal to be send. | |
virtual void | SendSignal () |
Send a signal and wake the 'thread' that was waiting for it. | |
![]() | |
virtual | ~ThreadMutex () |
Virtual Destructor to avoid compiler warnings. |
Additional Inherited Members | |
![]() | |
static ThreadMutex * | New () |
Create a new mutex. |
Mutex that doesn't do locking because it ain't needed when there're no threads.
Definition at line 24 of file thread_none.cpp.
|
inlinevirtual |
Begin the critical section.
allow_recursive | Whether recursive locking is intentional. If false, NOT_REACHED() will be called when the mutex is already locked by the current thread. |
Implements ThreadMutex.
Definition at line 26 of file thread_none.cpp.
|
inlinevirtual |
End of the critical section.
allow_recursive | Whether recursive unlocking is intentional. If false, NOT_REACHED() will be called when the mutex was locked more than once by the current thread. |
Implements ThreadMutex.
Definition at line 27 of file thread_none.cpp.
|
inlinevirtual |
Wait for a signal to be send.
Implements ThreadMutex.
Definition at line 28 of file thread_none.cpp.