Honeycomb  0.1
Component-Model Framework
Classes | Namespaces | Enumerations
Unique.h File Reference
#include "Honey/Misc/Enum.h"
#include "Honey/Misc/ScopeGuard.h"
#include "Honey/Chrono/Clock.h"
#include "Honey/Thread/Lock/Mutex.h"
Include dependency graph for Unique.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  honey::SharedLock< Lockable_ >
 A scoped lock that references a shared mutex. Does a shared read lock on construction and unlocks on destruction. More...
 
class  honey::UniqueLock< Lockable_ >
 A scoped lock that references any lockable. Locks on construction and unlocks on destruction. More...
 

Namespaces

 honey
 Global Honeycomb namespace.
 
 honey::lock
 Mutex lock util.
 

Enumerations

enum  honey::lock::Op { honey::lock::Op::lock, honey::lock::Op::tryLock, honey::lock::Op::adopt, honey::lock::Op::defer }
 

Functions

ScopeGuard functors
template<class Lock >
function< void()> honey::lock::lockGuard (Lock &lock)
 
template<class Lock >
function< void()> honey::lock::unlockGuard (Lock &lock)
 
template<class Lock >
function< void()> honey::lock::releaseGuard (Lock &lock)