NVIDIA Iray: Base API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mi::base::Lock Class Reference

Lock class implementing a critical region that only one thread can enter at a time. More...

Classes

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

Public Member Functions

  Lock ()
  Constructor. More...
 
  ~Lock ()
  Destructor. More...
 

Protected Member Functions

void  lock ()
  Lock the lock. More...
 
void  unlock ()
  Unlock the lock. More...
 

Detailed Description

Lock class implementing a critical region that only one thread can enter at a time.

Constructor & Destructor Documentation

mi::base::Lock::Lock ( )
inline

Constructor.

mi::base::Lock::~Lock ( )
inline

Destructor.

Member Function Documentation

void mi::base::Lock::lock ( )
inlineprotected

Lock the lock.

void mi::base::Lock::unlock ( )
inlineprotected

Unlock the lock.