#include <winmutex.h>
Windows implementation of IMutex using WinApi Critical Section. https://msdn.microsoft.com/en-us/library/windows/desktop/ms682530(v=vs.85).aspx. Windows Server 2003 / XP and below aren't supported.
◆ WinMutex()
| ttv::WinMutex::WinMutex |
( |
| ) |
|
◆ ~WinMutex()
| virtual ttv::WinMutex::~WinMutex |
( |
| ) |
|
|
virtual |
◆ Destroy()
◆ Lock()
Block/wait until the mutex is free to take, and then acquire the mutex.
- Returns
- TTV_EC_SUCCESS: Mutex has been successfully acquired.
Implements ttv::IMutex.
◆ TryLock()
Attempt to acquire the mutex, without waiting for the lock to be available.
- Returns
- TTV_EC_SUCCESS: Mutex has been successfully acquired.
- TTV_WRN_MUTEX_NOT_ACQUIRED: Lock has failed and mutex has not been acquired.
Implements ttv::IMutex.
◆ Unlock()
Release the previously acquired mutex (through Lock()).
- Returns
- TTV_EC_SUCCESS: Mutex has been sucessfully released.
Implements ttv::IMutex.
◆ mCriticalSection
| CRITICAL_SECTION ttv::WinMutex::mCriticalSection |
|
private |
◆ mLocked
| bool ttv::WinMutex::mLocked |
|
private |
The documentation for this class was generated from the following file:
- modules/core/core_win32/include/twitchsdk/core/winmutex.h