#include <MutexGuard.h>
|
| | MutexGuard (OS_Mutex *mutex, bool *pSuccess) |
| | The constructor acquires the mutex, expected to wait forever.
|
| |
| | MutexGuard (OS_Mutex &mutex, bool *pSuccess) |
| | The constructor acquires the mutex, expected to wait forever.
|
| |
| | MutexGuard (Mutex &mutex, bool *pSuccess) |
| | The constructor acquires the mutex.
|
| |
| | MutexGuard (OS_Mutex *mutex, uint32_t maxMsecToWait=MaxWaitTimeMsec, bool *pSuccess=nullptr) |
| | The constructor acquires the mutex.
|
| |
| | MutexGuard (OS_Mutex &mutex, uint32_t maxMsecToWait=MaxWaitTimeMsec, bool *pSuccess=nullptr) |
| | The constructor acquires the mutex.
|
| |
| | MutexGuard (Mutex &mutex, uint32_t maxMsecToWait=MaxWaitTimeMsec, bool *pSuccess=nullptr) |
| | The constructor acquires the mutex.
|
| |
| | ~MutexGuard () |
| | The destructor releases the lock on the mutex.
|
| |
◆ MutexGuard() [1/6]
| MutexGuard::MutexGuard |
( |
OS_Mutex * |
mutex, |
|
|
bool * |
pSuccess |
|
) |
| |
The constructor acquires the mutex, expected to wait forever.
- Parameters
-
| mutex | Mutex to be acquired |
| [out] | success | A pointer to store success of mutex acquiring. |
Return true in pointer if successful.
◆ MutexGuard() [2/6]
| MutexGuard::MutexGuard |
( |
OS_Mutex & |
mutex, |
|
|
bool * |
pSuccess |
|
) |
| |
The constructor acquires the mutex, expected to wait forever.
- Parameters
-
| mutex | Mutex to be acquired |
| [out] | success | A pointer to store success of mutex acquiring. |
Return true in pointer if successful.
◆ MutexGuard() [3/6]
| MutexGuard::MutexGuard |
( |
Mutex & |
mutexArg, |
|
|
bool * |
pSuccess |
|
) |
| |
The constructor acquires the mutex.
- Parameters
-
| mutex | Mutex to be acquired |
| [out] | success | A pointer to store success of mutex acquiring. |
| mutex | Mutex to be acquired |
| maxMsecToWait | Max time to wait before timing out |
◆ MutexGuard() [4/6]
| MutexGuard::MutexGuard |
( |
OS_Mutex * |
mutexArg, |
|
|
uint32_t |
maxMsecToWait = MaxWaitTimeMsec, |
|
|
bool * |
pSuccess = nullptr |
|
) |
| |
The constructor acquires the mutex.
- Parameters
-
| mutex | Mutex to be acquired |
| maxMsecToWait | Max time to wait before timing out |
| [out] | success | A pointer to store success of mutex acquiring. |
Return true in pointer if successful.
◆ MutexGuard() [5/6]
| MutexGuard::MutexGuard |
( |
OS_Mutex & |
mutexArg, |
|
|
uint32_t |
maxMsecToWait = MaxWaitTimeMsec, |
|
|
bool * |
pSuccess = nullptr |
|
) |
| |
The constructor acquires the mutex.
- Parameters
-
| mutex | Mutex to be acquired |
| maxMsecToWait | Max time to wait before timing out |
| [out] | success | A pointer to store success of mutex acquiring. |
Return true in pointer if successful.
◆ MutexGuard() [6/6]
| MutexGuard::MutexGuard |
( |
Mutex & |
mutexArg, |
|
|
uint32_t |
maxMsecToWait = MaxWaitTimeMsec, |
|
|
bool * |
pSuccess = nullptr |
|
) |
| |
The constructor acquires the mutex.
- Parameters
-
| mutex | Mutex to be acquired |
| maxMsecToWait | Max time to wait before timing out |
| [out] | success | A pointer to store success of mutex acquiring. |
| mutex | Mutex to be acquired |
| maxMsecToWait | Max time to wait before timing out |
◆ ~MutexGuard()
| MutexGuard::~MutexGuard |
( |
| ) |
|
The destructor releases the lock on the mutex.
◆ MaxInitializationTimeMsec
| constexpr uint32_t MutexGuard::MaxInitializationTimeMsec = 10U |
|
staticconstexpr |
TODO: This seems unreasonably long.. lets work down to about 100 msec.
◆ MaxWaitTimeMsec
| constexpr uint32_t MutexGuard::MaxWaitTimeMsec = 250U |
|
staticconstexpr |
◆ mutex
Used for initial creation/lock.
The documentation for this class was generated from the following files: