class PCondMutex

This class defines a thread synchonisation object.

Inheritance:


Public Methods

[more]virtual void WaitCondition ()
This function attempts to acquire the mutex, but will block not only until the mutex is free, but also that the condition returned by the Condition() function is also met
[more]virtual void Signal ()
If there are waiting (blocked) threads then unblock the first one that was blocked.
[more]virtual BOOL Condition ()
This is the condition that must be met for the WaitCondition() function to acquire the mutex
[more]virtual void OnWait ()
This function is called immediately before blocking on the condition in the WaitCondition() function.


Inherited from PMutex:


Inherited from PSemaphore:

Public Methods

Construction

Operations


Inherited from PObject:

Public Methods

Run Time Type functions

I/O functions

Public Members

Comparison functions


Documentation

This class defines a thread synchonisation object.

This is a special type of mutual exclusion, where a thread wishes to get exlusive use of a resource but only if a certain other condition is met.

ovirtual void WaitCondition()
This function attempts to acquire the mutex, but will block not only until the mutex is free, but also that the condition returned by the Condition() function is also met

ovirtual void Signal()
If there are waiting (blocked) threads then unblock the first one that was blocked. If no waiting threads and the count is less than the maximum then increment the semaphore.

ovirtual BOOL Condition() = 0
This is the condition that must be met for the WaitCondition() function to acquire the mutex

ovirtual void OnWait()
This function is called immediately before blocking on the condition in the WaitCondition() function. This could get called multiple times before the condition is met and the WaitCondition() function returns.


Direct child classes:
PIntCondMutex

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.