|
10Duke Enterprise C++ Client
|
#include <GuardWithTimeout.h>
A mutex-guard with timeout functionality.
| TIMED_MUTEX | type of the mutex |
Public Member Functions | |
| GuardWithTimeout (TIMED_MUTEX &mutex, std::chrono::milliseconds timeout) | |
| Constructs new instance: Tries to lock the mutex. | |
| bool | hasTimedout () const |
| Checks if the guard failed beaause of timeout. | |
|
inline |
Constructs new instance: Tries to lock the mutex.
| mutex | - |
| timeout | - |
|
inline |
Checks if the guard failed beaause of timeout.