UCommon
|
Locking protocol classes for member function automatic operations. More...
Go to the source code of this file.
Data Structures | |
class | ucommon::exclusive_access |
A kind of smart pointer object to support exclusive locking protocol. More... | |
class | ucommon::ExclusiveAccess |
An exclusive locking protocol interface base. More... | |
class | ucommon::shared_access |
A kind of smart pointer object to support shared locking protocol. More... | |
class | ucommon::SharedAccess |
An exclusive locking access interface base. More... | |
class | ucommon::UnlockAccess |
Common unlock protocol for locking protocol interface classes. More... | |
Namespaces | |
namespace | ucommon |
Common namespace for all ucommon objects. | |
Typedefs | |
typedef exclusive_access | ucommon::exlock_t |
Convenience type to use for object referencing an exclusive object. | |
typedef shared_access | ucommon::shlock_t |
Convenience type to use for object referencing a shared object. | |
Functions | |
void | ucommon::access (SharedAccess &object) |
Convenience function to access (lock) shared object through it's protocol. More... | |
void | ucommon::exclusive (SharedAccess &object) |
Convenience function to exclusive lock shared object through it's protocol. More... | |
void | ucommon::lock (ExclusiveAccess &object) |
Convenience function to exclusively lock an object through it's protocol. More... | |
void | ucommon::release (SharedAccess &object) |
Convenience function to unlock shared object through it's protocol. More... | |
void | ucommon::release (exlock_t &reference) |
Convenience function to release a reference to an exclusive lock. More... | |
void | ucommon::release (shlock_t &reference) |
Convenience function to release a reference to a shared lock. More... | |
void | ucommon::share (SharedAccess &object) |
Convenience function to restore shared locking for object through it's protocol. More... | |
void | ucommon::unlock (ExclusiveAccess &object) |
Convenience function to unlock an exclusive object through it's protocol. More... | |
Locking protocol classes for member function automatic operations.
This header covers ucommon access related classes. These are used to provide automatic management of locks and synchronization objects through common virtual base classes which can be used with automatic objects. These classes are related to "protocols" and are used in conjunction with smart pointer/referencing classes. The access interface supports member functions to acquire a lock when entered and automatically release the lock when the member function returns that are used in conjunction with special referencing smart pointers.
Definition in file access.h.