#include <lockable.h>
Inheritance diagram for mysqlpp::Lockable:
Protected Member Functions | |
Lockable (bool is_locked) | |
Default constructor. | |
virtual | ~Lockable () |
Destroy object. | |
virtual bool | lock () |
Lock the object. | |
virtual void | unlock () |
Unlock the object. | |
bool | locked () const |
Returns true if object is locked. | |
void | set_lock (bool b) |
Set the lock state. Protected, because this method is only for use by subclass assignment operators and the like. |
A class derives from this one to acquire a standard interface for serializing operations that may not be thread-safe.
|
Lock the object.
|