PixelLightAPI  .
Protected Member Functions
PLCore::MutexImpl Class Reference

Abstract base class for platform specific 'Mutex' implementations. More...

#include <MutexImpl.h>

Inheritance diagram for PLCore::MutexImpl:
Inheritance graph
[legend]

List of all members.

Protected Member Functions

 MutexImpl ()
 Constructor.
virtual ~MutexImpl ()
 Destructor.
virtual bool Lock ()=0
 Locks the mutex.
virtual bool TryLock (uint64 nTimeout)=0
 Locks the mutex, but only wait until timeout.
virtual bool Unlock ()=0
 Unlocks the mutex.

Detailed Description

Abstract base class for platform specific 'Mutex' implementations.

Note:
  • Implementation of the bridge design pattern, this class is the implementor of the 'Mutex' abstraction

Constructor & Destructor Documentation

virtual PLCore::MutexImpl::~MutexImpl ( ) [protected, virtual]

Destructor.


Member Function Documentation

virtual bool PLCore::MutexImpl::Lock ( ) [protected, pure virtual]

Locks the mutex.

Returns:
'true' if successful, 'false' on error
virtual bool PLCore::MutexImpl::TryLock ( uint64  nTimeout) [protected, pure virtual]

Locks the mutex, but only wait until timeout.

Parameters:
[in]nTimeoutTimeout in milliseconds
Returns:
'true' if successful, 'false' on error
Note:
  • nTimeout = 0 means no timeout at all
virtual bool PLCore::MutexImpl::Unlock ( ) [protected, pure virtual]

Unlocks the mutex.

Returns:
'true' if successful, 'false' on error

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


PixelLight PixelLight 0.9.10-R1
Copyright (C) 2002-2011 by The PixelLight Team
Last modified Fri Dec 23 2011 15:51:16
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported