Scanframe Modular Application 0.1.0
|
Sync provides a system-independent interface to build classes that act like monitors, i.e., classes in which only one member can execute on a particular instance at any one time. Sync uses Mutex, so it is portable to all platforms that Mutex has been ported to. More...
#include <Sync.h>
Classes | |
class | Lock |
Locks the Mutex object in the Sync object. More... | |
Protected Member Functions | |
Sync ()=default | |
Only multi inheritance is allowed to create this instance. | |
Sync (const Sync &) | |
Copy constructor does not copy the Mutex object, since the new object is not being used in any of its own member functions. This means that the new object must start in an unlocked state. | |
Sync & | operator= (const Sync &) |
Does not copy the Mutex object, since the new object is not being used in any of its own member functions. This means that the new object must start in an unlocked state. | |
Sync provides a system-independent interface to build classes that act like monitors, i.e., classes in which only one member can execute on a particular instance at any one time. Sync uses Mutex, so it is portable to all platforms that Mutex has been ported to.
Sync Public Interface
None. Sync can only be a base class.
Sync Protected Interface
Sync(const Sync&); Copy constructor. Does not copy the Mutex object. const Sync& operator =(const Sync&); Assignment operator. Does not copy the Mutex object. class Lock; Handles locking and unlocking of member functions.
Example
|
protecteddefault |
Only multi inheritance is allowed to create this instance.
|
inlineprotected |
Copy constructor does not copy the Mutex object, since the new object is not being used in any of its own member functions. This means that the new object must start in an unlocked state.
Does not copy the Mutex object, since the new object is not being used in any of its own member functions. This means that the new object must start in an unlocked state.