golib  0.5
goSynchronized Class Reference

#include <gosynchronized.h>

Public Member Functions

void addSynchronizedListener (goSynchronized *s)
 
void signalSynchronize ()
 
goConditiongetSynchronizeCondition ()
 

Protected Member Functions

void waitSynchronize ()
 

Detailed Description

Synchronizing concurrent objects. This class is using a condition variable to synchronize with other goSynchronized objects. Do not use this for consumer/producer problems, rather use it for making one object to wait for another if you know exactly that it has to wait.

Author
Christian Gosch
Date
21.9.2001
See also
goConsumer
goProducer

Member Function Documentation

◆ addSynchronizedListener()

void goSynchronized::addSynchronizedListener ( goSynchronized s)
Parameters
sObject using waitSynchronize() to wait for a sync signal.

◆ signalSynchronize()

void goSynchronized::signalSynchronize ( )

Signal all listening objects the sync event.

◆ waitSynchronize()

void goSynchronized::waitSynchronize ( )
protected

Wait until a sync is signalled.


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