Lock object for taking out shared locks. More...
#include <threading.h>
Public Types | |
typedef LOCKABLE | lockable_type |
The underlying object type. | |
Public Member Functions | |
strict_shared_lock (lockable_type &obj) | |
Take out a shared lock on obj and remember it. | |
strict_shared_lock (const lockable_type &obj) | |
Take out a shared lock on obj and remember it. | |
~strict_shared_lock () | |
Release the held lock. |
Lock object for taking out shared locks.
This is like the boost strict_lock
, except that it takes out a shared lock on the underlying object rather than an exclusive one.
AthContainers_detail::strict_shared_lock< LOCKABLE >::strict_shared_lock | ( | lockable_type & | obj | ) | [inline, explicit] |
Take out a shared lock on obj
and remember it.
obj | The lockable object. |
AthContainers_detail::strict_shared_lock< LOCKABLE >::strict_shared_lock | ( | const lockable_type & | obj | ) | [inline, explicit] |
Take out a shared lock on obj
and remember it.
obj | The lockable object. |