PthreadLock Class Reference

Internal pthread lock adaption class. More...

#include <pthreadlock.h>

List of all members.

Public Member Functions

 PthreadLock () throw ()
 Lock constructor.
void acquire () throw ()
 Blockingly acquires this lock.
bool tryacquire () throw ()
 Tries to acquire this lock.
void release () throw ()
 Releases this lock.
 ~PthreadLock () throw ()
 Lock destructor.

Friends

class PthreadCondition


Detailed Description

Internal pthread lock adaption class.

This really contains a pthread_mutex_t.


Member Function Documentation

void PthreadLock::acquire (  )  throw ()

Blockingly acquires this lock.

This may result in a deadlock if used improperly.

bool PthreadLock::tryacquire (  )  throw ()

Tries to acquire this lock.

Returns:
true if the lock was acquired by this call

void PthreadLock::release (  )  throw ()

Releases this lock.

If the lock is not acquired the behaviour is undefined.


The documentation for this class was generated from the following files:
Generated on Sat Feb 7 01:26:51 2009 by  doxygen 1.5.1