My Project
|
Public Member Functions | |
void | init () |
void | destroy () |
MDL_lock * | find_or_insert (const MDL_key *key) |
void | remove (MDL_lock *lock) |
A collection of all MDL locks. A singleton, there is only one instance of the map in the server. Contains instances of MDL_map_partition
void MDL_map::destroy | ( | ) |
Destroy the container for all MDL locks.
MDL_lock * MDL_map::find_or_insert | ( | const MDL_key * | mdl_key | ) |
Find MDL_lock object corresponding to the key, create it if it does not exist.
non-NULL | - Success. MDL_lock instance for the key with locked MDL_lock::m_rwlock. |
NULL | - Failure (OOM). |
void MDL_map::init | ( | ) |
Initialize the container for all MDL locks.
void MDL_map::remove | ( | MDL_lock * | lock | ) |
Destroy MDL_lock object or delegate this responsibility to whatever thread that holds the last outstanding reference to it.