12#ifndef ROC_CORE_MUTEX_H_
13#define ROC_CORE_MUTEX_H_
#define ROC_ATTR_NODISCARD
Emit warning if function result is not checked.
ScopedLock< Mutex > Lock
RAII lock.
void unlock() const
Unlock mutex.
ROC_ATTR_NODISCARD bool try_lock() const
Try to lock the mutex.
void lock() const
Lock mutex.
Base class for non-copyable objects.
Shared ownership intrusive pointer.
#define roc_panic(...)
Print error message and terminate program gracefully.