#include <standardmutex.h>
◆ StandardConditionMutex()
| ttv::StandardConditionMutex::StandardConditionMutex |
( |
| ) |
|
◆ ~StandardConditionMutex()
| virtual ttv::StandardConditionMutex::~StandardConditionMutex |
( |
| ) |
|
|
virtual |
◆ Broadcast()
◆ 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.
◆ Signal()
◆ 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.
◆ Wait()
◆ WaitFor()
| virtual TTV_ErrorCode ttv::StandardConditionMutex::WaitFor |
( |
uint64_t |
timeoutMilliseconds | ) |
|
|
overridevirtual |
Wait on the IConditionMutex until notified to wake up OR the timeout is reached.
- Parameters
-
| [in] | timeoutMilliseconds | The timeout to wait in milliseconds. |
- Returns
- TTV_EC_SUCCESS: Waited sucessfully on the IConditionMutex (and was notified through Signal()/Broadcast()).
- TTV_WRN_WAIT_TIMEOUT: The timeout was hit while waiitng on IConditionMutex.
- TTV_WRN_CONDITION_WAIT_FAILED: Wait was not successful.
Implements ttv::IConditionMutex.
◆ mCondition
| std::condition_variable ttv::StandardConditionMutex::mCondition |
|
private |
◆ mMutex
| std::mutex ttv::StandardConditionMutex::mMutex |
|
private |
The documentation for this class was generated from the following file: