ZeusBase-Library  2.0.4
zeus::ISynchronizeObject Class Referenceabstract

#include <ISynchronizeObject.hpp>

Inheritance diagram for zeus::ISynchronizeObject:
zeus::IZUnknown zeus::TSynchronizeObject zeus::TSynchronizeObjectDelegater< T >

Public Member Functions

virtual void MQUALIFIER process ()=0
 
virtual bool MQUALIFIER waitForCompletion ()=0
 
virtual void MQUALIFIER notifyCompletion (bool bOK)=0
 
virtual bool MQUALIFIER hasError () const =0
 
- Public Member Functions inherited from zeus::IZUnknown
virtual Retval MQUALIFIER askForInterface (const InterfaceID &rInterfaceID, IZUnknown *&rpIface)=0
 
virtual void MQUALIFIER addRef () const =0
 
virtual void MQUALIFIER release () const =0
 

Detailed Description

This interface defines a synchronize object. Its used to synchronize two threads

Member Function Documentation

§ hasError()

virtual bool MQUALIFIER zeus::ISynchronizeObject::hasError ( ) const
pure virtual

Checks if an error occured

Implemented in zeus::TSynchronizeObject.

§ notifyCompletion()

virtual void MQUALIFIER zeus::ISynchronizeObject::notifyCompletion ( bool  bOK)
pure virtual

Notifies the waiting thread. This is called from the synchronized thread.

Implemented in zeus::TSynchronizeObject.

§ process()

virtual void MQUALIFIER zeus::ISynchronizeObject::process ( )
pure virtual

Processes the synchronizing. This is called from the synchronized thread.

Implemented in zeus::TSynchronizeObjectDelegater< T >, and zeus::TSynchronizeObject.

§ waitForCompletion()

virtual bool MQUALIFIER zeus::ISynchronizeObject::waitForCompletion ( )
pure virtual

the waiting thread must call this method to wait for termination of the process method

Implemented in zeus::TSynchronizeObject.


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


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Tue Sep 13 2016 22:31:40