CppUnit project page FAQ CppUnit home page

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

CppUnit::SynchronizedObject Class Reference

Base class for synchronized object. More...

#include <SynchronizedObject.h>

Inheritance diagram for CppUnit::SynchronizedObject:

CppUnit::TestResult CppUnit::TestSucessListener CppUnit::TextTestResult CppUnit::TestResultCollector CppUnit::TextTestResult List of all members.

Public Methods

 SynchronizedObject (SynchronizationObject *syncObject=0)
virtual ~SynchronizedObject ()
 Destructor. More...


Protected Methods

virtual void setSynchronizationObject (SynchronizationObject *syncObject)
 Accept a new synchronization object for protection of this instance TestResult assumes ownership of the object. More...


Protected Attributes

SynchronizationObjectm_syncObject

Private Methods

 SynchronizedObject (const SynchronizedObject &copy)
 Prevents the use of the copy constructor. More...

void operator= (const SynchronizedObject &copy)
 Prevents the use of the copy operator. More...


Detailed Description

Base class for synchronized object.

Synchronized object are object which members are used concurrently by mutiple threads.

This class define the class SynchronizationObject which must be subclassed to implement an actual lock.

Each instance of this class holds a pointer on a lock object.

See src/msvc6/MfcSynchronizedObject.h for an example.


Constructor & Destructor Documentation

CppUnit::SynchronizedObject::SynchronizedObject SynchronizationObject   syncObject = 0
 

Constructs a SynchronizedObject object.

CppUnit::SynchronizedObject::~SynchronizedObject   [virtual]
 

Destructor.

CppUnit::SynchronizedObject::SynchronizedObject const SynchronizedObject &    copy [private]
 

Prevents the use of the copy constructor.


Member Function Documentation

void CppUnit::SynchronizedObject::operator= const SynchronizedObject &    copy [private]
 

Prevents the use of the copy operator.

void CppUnit::SynchronizedObject::setSynchronizationObject SynchronizationObject   syncObject [protected, virtual]
 

Accept a new synchronization object for protection of this instance TestResult assumes ownership of the object.


Member Data Documentation

SynchronizationObject* CppUnit::SynchronizedObject::m_syncObject [protected]
 


The documentation for this class was generated from the following files:
SourceForge Logo hosts this site. Send comments to:
CppUnit Developers