mysqlpp::BasicLock Class Reference

Trivial Lock subclass, using a boolean variable as the lock flag. More...

#include <lockable.h>

Inheritance diagram for mysqlpp::BasicLock:

mysqlpp::Lock List of all members.

Public Member Functions

 BasicLock (bool is_locked=false)
 Create object.
 ~BasicLock ()
 Destroy object.
bool lock ()
 Lock the object.
void unlock ()
 Unlock the object.
bool locked () const
 Returns true if object is locked.
void set (bool b)
 Set the lock state.

Detailed Description

Trivial Lock subclass, using a boolean variable as the lock flag.

This is the only Lock implementation available in this version of MySQL++. It will be supplemented with a better implementation for use with threads at a later date.


Member Function Documentation

bool mysqlpp::BasicLock::lock (  )  [inline, virtual]

Lock the object.

Returns:
true if object was already locked

Implements mysqlpp::Lock.


The documentation for this class was generated from the following file:
Generated on 10 Oct 2017 for MySQL++ by  doxygen 1.4.7