libfoedus-core
FOEDUS Core Library
|
Shared data in StorageManagerPimpl. More...
Shared data in StorageManagerPimpl.
Definition at line 40 of file storage_manager_pimpl.hpp.
#include <storage_manager_pimpl.hpp>
Public Member Functions | |
StorageManagerControlBlock ()=delete | |
~StorageManagerControlBlock ()=delete | |
void | initialize () |
void | uninitialize () |
Public Attributes | |
soc::SharedMutex | mod_lock_ |
In case there are multiple threads that add/delete/expand storages, those threads take this lock. More... | |
StorageId | largest_storage_id_ |
The largest StorageId we so far observed. More... | |
|
delete |
|
delete |
|
inline |
Definition at line 45 of file storage_manager_pimpl.hpp.
References foedus::soc::SharedMutex::initialize(), and mod_lock_.
Referenced by foedus::storage::StorageManagerPimpl::initialize_once().
|
inline |
Definition at line 48 of file storage_manager_pimpl.hpp.
References mod_lock_, and foedus::soc::SharedMutex::uninitialize().
Referenced by foedus::storage::StorageManagerPimpl::uninitialize_once().
StorageId foedus::storage::StorageManagerControlBlock::largest_storage_id_ |
The largest StorageId we so far observed.
This value +1 would be the ID of the storage created next.
Definition at line 63 of file storage_manager_pimpl.hpp.
Referenced by foedus::storage::StorageManagerPimpl::create_storage_apply(), foedus::storage::StorageManagerPimpl::exists(), foedus::storage::StorageManager::get_largest_storage_id(), foedus::storage::StorageManagerPimpl::get_storage(), foedus::storage::StorageManagerPimpl::initialize_once(), foedus::storage::StorageManagerPimpl::initialize_read_latest_snapshot(), foedus::storage::StorageManagerPimpl::issue_next_storage_id(), foedus::storage::StorageManagerPimpl::reinitialize_for_recovered_snapshot(), and foedus::storage::StorageManagerPimpl::uninitialize_once().
soc::SharedMutex foedus::storage::StorageManagerControlBlock::mod_lock_ |
In case there are multiple threads that add/delete/expand storages, those threads take this lock.
Normal threads that only read storages_ don't have to take this.
Definition at line 57 of file storage_manager_pimpl.hpp.
Referenced by foedus::storage::StorageManagerPimpl::exists(), foedus::storage::StorageManagerPimpl::get_storage(), initialize(), foedus::storage::StorageManagerPimpl::issue_next_storage_id(), and uninitialize().