NVIDIA IndeX: Math API nvidia_logo_transpbg.gif Up
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mi::base::Recursive_lock Class Reference

Recursive lock class. More...

#include <lock.h>


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

Public Member Functions

 Recursive_lock ()
 ~Recursive_lock ()

Protected Member Functions

void lock ()
 Locks the lock.
bool try_lock ()
 Tries to lock the lock.
void unlock ()
 Unlocks the lock.

Detailed Description

Recursive lock class.

The lock implements a critical region that only one thread can enter at a time. The lock is recursive, i.e., a thread that holds the lock can lock it again.

Pre- and post-conditions are checked via mi_base_assert.

See Also

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