sigx++  2.0.1
sigx::choose_lock< T_mutex, I_policy > Struct Template Reference

Metafunction that chooses an appropriate scoped lock for a mutex. More...

#include <choose_lock.h>

Detailed Description

template<typename T_mutex, locking_policy I_policy>
struct sigx::choose_lock< T_mutex, I_policy >

Metafunction that chooses an appropriate scoped lock for a mutex.

The lock type should be a scoped lock because lock_acquirer is a scope-bound type.

Note
There is no default lock type choosing mechanism because there is no such thing as a default or commonly used mutex. This means that the using programmer has to specialize this metafunction for her mutexes and the locking policy

The documentation for this struct was generated from the following file: