ALBA
Public Member Functions | Protected Attributes | List of all members
albaMutexLock Class Reference

#include <albaMutexLock.h>

Inheritance diagram for albaMutexLock:
Inheritance graph
[legend]
Collaboration diagram for albaMutexLock:
Collaboration graph
[legend]

Public Member Functions

 albaMutexLock ()
 
 ~albaMutexLock ()
 
void Lock (void) const
 
void Unlock (void) const
 

Protected Attributes

mmuPIMPLMutexLock * m_PIMPLMutexLock
 

Detailed Description

Critical section locking class that can be allocated on the stack.

albaMutexLock allows the locking of variables which are accessed through different threads. On Windows 9x/NT platforms albaMutexLock is less flexible, in that it does not work across processes, but on the other hand it costs less: it does not evoke the 600-cycle x86 ring transition. The albaMutexLock provides a higher-performance locking mechanism on Windows, but won't work across processes.

Definition at line 32 of file albaMutexLock.h.

Constructor & Destructor Documentation

◆ albaMutexLock()

albaMutexLock::albaMutexLock ( )

Constructor and destructor left public purposely because of stack allocation.

◆ ~albaMutexLock()

albaMutexLock::~albaMutexLock ( )

Member Function Documentation

◆ Lock()

void albaMutexLock::Lock ( void  ) const

Lock access.

◆ Unlock()

void albaMutexLock::Unlock ( void  ) const

Unlock access.

Member Data Documentation

◆ m_PIMPLMutexLock

mmuPIMPLMutexLock* albaMutexLock::m_PIMPLMutexLock
protected

Definition at line 45 of file albaMutexLock.h.


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