CNQLockMechanism Class Reference

Synchronization Base Object. More...

#include <NQLockMechanism.h>

Inherited by CNQMessagePool, CNQPacketQueue, CNQPeerList, and CNQResponseWaitQueue.

List of all members.

Public Member Functions

 CNQLockMechanism ()
 Constructor.
virtual ~CNQLockMechanism ()
 Destructor.
bool lock ()
 Lock the Object.
void unlock ()
 Unlock the Object.
void setTimeoutMsec (UINT32 timeout)
 set the timeout constant
UINT32 getTimeoutMsec ()
 read back the timeout constant

Protected Attributes

HANDLE m_hMutex
 platform handle; used to lock/unlock object
UINT32 m_uiTimeoutMsec


Detailed Description

Synchronization Base Object.

Implementation of a platform independent mutex object in order to synchronize multiple thread or multiple task access. Used inside ResponseWaitQueue, PacketQueue, MessageBuffers

The receiver will acknowlegde the command by calling Ack().

Definition at line 12 of file NQLockMechanism.h.


Constructor & Destructor Documentation

CNQLockMechanism::CNQLockMechanism (  ) 

Constructor.

Definition at line 18 of file NQLockMechanism.cpp.

CNQLockMechanism::~CNQLockMechanism (  )  [virtual]

Destructor.

Definition at line 27 of file NQLockMechanism.cpp.


Member Function Documentation

bool CNQLockMechanism::lock (  ) 

void CNQLockMechanism::unlock (  ) 

void CNQLockMechanism::setTimeoutMsec ( UINT32  timeout  ) 

set the timeout constant

Definition at line 33 of file NQLockMechanism.cpp.

UINT32 CNQLockMechanism::getTimeoutMsec (  ) 

read back the timeout constant

Definition at line 38 of file NQLockMechanism.cpp.


Member Data Documentation

HANDLE CNQLockMechanism::m_hMutex [protected]

platform handle; used to lock/unlock object

Definition at line 32 of file NQLockMechanism.h.

Referenced by CNQLockMechanism(), lock(), unlock(), and ~CNQLockMechanism().

Definition at line 33 of file NQLockMechanism.h.

Referenced by CNQLockMechanism(), getTimeoutMsec(), lock(), and setTimeoutMsec().


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

Generated on Tue Apr 22 18:19:58 2008 for NetworkQueue by  doxygen 1.5.5