◆ Table_shards()
locksys::Latches::Table_shards::Table_shards |
( |
| ) |
|
◆ ~Table_shards()
locksys::Latches::Table_shards::~Table_shards |
( |
| ) |
|
◆ get_mutex() [1/3]
Returns the mutex which (together with the global latch) protects the table shard which contains table locks for the given table.
- Parameters
-
- Returns
- The mutex responsible for the shard containing the table
◆ get_mutex() [2/3]
Returns the mutex which (together with the global latch) protects the table shard which contains table locks for the given table.
- Parameters
-
[in] | table_id | The id of the table |
- Returns
- The mutex responsible for the shard containing the table
◆ get_mutex() [3/3]
Returns the mutex which (together with the global latch) protects the table shard which contains table locks for the given table.
- Parameters
-
[in] | table_id | The id of the table |
- Returns
- The mutex responsible for the shard containing the table
◆ get_shard()
size_t locksys::Latches::Table_shards::get_shard |
( |
const table_id_t |
table_id | ) |
|
|
staticprivate |
Identifies the table shard which contains locks for the given table.
- Parameters
-
[in] | table_id | The id of the table |
- Returns
- Integer in the range [0..lock_sys_t::SHARDS_COUNT)
◆ mutexes
Each shard is protected by a separate mutex.
Mutexes are padded to avoid false sharing issues with cache.
The documentation for this class was generated from the following files: