1 class __attribute__((lockable
)) Lock
{
3 void Acquire() __attribute__((exclusive_lock_function())) {}
4 void Release() __attribute__((unlock_function())) {}
7 class __attribute__((scoped_lockable
)) AutoLock
{
9 AutoLock(Lock
&lock
) __attribute__((exclusive_lock_function(lock
)))
13 ~AutoLock() __attribute__((unlock_function())) { lock_
.Release(); }