eckit::Mutex class

Reentrant Mutex In addition to std::reentrant_mutex this checks valida construction before usage and add an optional tag, both of which can be useful when debugging, especially when dealing with construction before main() execution (eg self-registration classes)

Constructors, destructors, conversion operators

Mutex(char tag = ' ')
~Mutex()

Public functions

void lock()
void unlock()
auto tryLock() -> bool
auto tag() const -> char
This website is beyond its original expiry date and the content may be out of date. The site owner has been notified and may choose to extend the expiry date and remove this banner. If you have any questions about this, please visit our support portal.