Spinnaker C++
3.1.0.78
Public Member Functions | Protected Attributes | Friends | List of all members
CLock Class Reference

A lock class. More...

Inheritance diagram for CLock:
CLockEx

Public Member Functions

 CLock ()
 Constructor. More...
 
 CLock (void *pLock)
 Constructor. More...
 
 ~CLock ()
 Destructor. More...
 
bool TryLock ()
 tries to enter the critical section; returns true if successful More...
 
void Lock ()
 enters the critical section (may block) More...
 
void Unlock ()
 leaves the critical section More...
 

Protected Attributes

void * m_lock
 
bool m_bOwnLock
 

Friends

class NodeMap
 

Detailed Description

A lock class.

Constructor & Destructor Documentation

CLock ( )

Constructor.

CLock ( void *  pLock)

Constructor.

~CLock ( )

Destructor.

Member Function Documentation

void Lock ( )

enters the critical section (may block)

bool TryLock ( )

tries to enter the critical section; returns true if successful

void Unlock ( )

leaves the critical section

Friends And Related Function Documentation

friend class NodeMap
friend

Member Data Documentation

bool m_bOwnLock
protected
void* m_lock
protected

The documentation for this class was generated from the following file:
Contact Support Spinnaker® SDK Programmer's Guide and API Reference