Public Types | |
|
typedef boost::unordered_map < user_locks::Key, user_locks::Lock::shared_ptr > | LockMap |
Public Member Functions | |
| void | waitCreate (int64_t wait_for=2) |
| bool | lock (drizzled::session_id_t id_arg, const user_locks::Key &arg, int64_t wait_for=0) |
| bool | lock (drizzled::session_id_t id_arg, const user_locks::Keys &arg) |
| locks::return_t | release (const user_locks::Key &arg, drizzled::session_id_t &id_arg, bool and_wait=false) |
| bool | isFree (const user_locks::Key &arg) |
| bool | isUsed (const user_locks::Key &arg, drizzled::session_id_t &id_arg) |
| void | Copy (LockMap &lock_map) |
Static Public Member Functions | |
| static Locks & | getInstance (void) |
Private Attributes | |
| boost::mutex | mutex |
| boost::condition_variable | create_cond |
| boost::condition_variable | release_cond |
| LockMap | lock_map |