1 #if !defined(__SYNCHRONIZED_HPP)
2 #define __SYNCHRONIZED_HPP
24 #if !defined IN_COMMON_HPP
25 #error Synchronized.hpp is included by Common.hpp only.
28 #if !defined(__SEMAPHOREEXCEPTION_HPP)
29 #include <SemaphoreException.hpp>
34 DECLARE_CLASS( Synchronized );
45 DECLARE_CLASS(
Guard );
147 Guard aGuardedLock( this->access() )
151 #endif // if !defined(__SYNCHRONIZED_HPP)
Guard is the automatic instance that insures a lock is not held beyond the scope where it was instant...
Definition: Synchronized.hpp:53
Guard access(void) const
Access returns a instance of Guard which is block scoped to the caller.
Definition: Synchronized.cpp:84
GuardRef operator=(GuardCref)
Assignment operator never called.
Definition: Synchronized.cpp:128
void release(void)
Releases before destruction.
Definition: Synchronized.cpp:144
bool operator==(SynchronizedCref) const
Equality operator.
Definition: Synchronized.cpp:75
Guard(void)
Default constructor never called.
Definition: Synchronized.cpp:94
Synchronized(void)
Default constructor.
Definition: Synchronized.cpp:39
Forward reference the various common classes.
Definition: AbstractAllocator.hpp:32
virtual ~Synchronized(void)
Virtual Destructor.
Definition: Synchronized.cpp:57
SemaphoreException is the base exception type for Semaphore.
Definition: SemaphoreException.hpp:39
Synchronized is a mixin which allows class objects to enable monitor functionality.
Definition: Synchronized.hpp:41
SynchronizedRef operator=(SynchronizedCref)
Assignment operator.
Definition: Synchronized.cpp:66
~Guard(void)
Destructor.
Definition: Synchronized.cpp:139