Spinnaker SDK C++
4.1.0.338
 
 

 
Loading...
Searching...
No Matches

A lock class. More...

#include <Synch.h>

Inheritance diagram for CLock:
CLockEx

Public Member Functions

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

Protected Attributes

void * m_lock
 
bool m_bOwnLock
 

Friends

class NodeMap
 

Detailed Description

A lock class.

Constructor & Destructor Documentation

◆ CLock() [1/2]

CLock ( )

Constructor.

◆ CLock() [2/2]

CLock ( void *  pLock)

Constructor.

◆ ~CLock()

~CLock ( )

Destructor.

Member Function Documentation

◆ Lock()

void Lock ( )

enters the critical section (may block)

◆ TryLock()

bool TryLock ( )

tries to enter the critical section; returns true if successful

◆ Unlock()

void Unlock ( )

leaves the critical section

Friends And Related Symbol Documentation

◆ NodeMap

friend class NodeMap
friend

Member Data Documentation

◆ m_bOwnLock

bool m_bOwnLock
protected

◆ m_lock

void* m_lock
protected

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