Math API nvidia_logo_transpbg.gif Up
mi::base::Recursive_lock::Block Class Reference

Utility class to acquire a lock that is released by the destructor. More...

#include <lock.h>

Public Member Functions

 Block (Recursive_lock *lock=0)
 Constructor. More...
 
 ~Block ()
 Destructor. More...
 
void set (Recursive_lock *lock)
 Acquires a lock. More...
 
bool try_set (Recursive_lock *lock)
 Tries to acquire a lock. More...
 
void release ()
 Releases the lock. More...
 

Detailed Description

Utility class to acquire a lock that is released by the destructor.

See also
mi::base::Recursive_lock