SynchronizedObject::ExclusiveZone

   
SynchronizedObject::ExclusiveZone

Description

The class ExclusiveZone (see Figure C-14) is a nested class belonging to SynchronizedObject . It locks a SynchronizationObject (mutex) upon construction and unlocks it upon destruction, thus providing protection during the scope of its existence.

ExclusiveZone belongs to the namespace CppUnit . It is declared and implemented in SynchronizedObject.h .

Figure C-14. The nested class SynchronizedObject::ExclusiveZone
figs/utf_ac14.gif

Declaration

 class ExclusiveZone 

Constructors/Destructors


ExclusiveZone(SynchronizationObject *syncObject)

Constructs ExclusiveZone and locks syncObject .


~ExclusiveZone( )

Destroys ExclusiveZone and unlocks syncObject .

Public Methods

None.

Protected/Private Methods

None.

Attributes


SynchronizationObject *m_syncObject

A pointer to the SynchronizationObject for this ExclusiveZone ( public ).



Unit Test Frameworks
Unit Test Frameworks
ISBN: 0596006896
EAN: 2147483647
Year: 2006
Pages: 146
Authors: Paul Hamill

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net