libfoedus-core
FOEDUS Core Library
|
This small control block is used to synchronize the access to the array. More...
This small control block is used to synchronize the access to the array.
Definition at line 36 of file proc_manager_pimpl.hpp.
#include <proc_manager_pimpl.hpp>
Public Member Functions | |
ProcManagerControlBlock ()=delete | |
~ProcManagerControlBlock ()=delete | |
void | initialize () |
void | uninitialize () |
Public Attributes | |
soc::SharedMutex | lock_ |
Mutex to protect data. More... | |
LocalProcId | count_ |
|
delete |
|
delete |
|
inline |
Definition at line 41 of file proc_manager_pimpl.hpp.
References count_, foedus::soc::SharedMutex::initialize(), and lock_.
Referenced by foedus::proc::ProcManagerPimpl::initialize_once().
|
inline |
Definition at line 45 of file proc_manager_pimpl.hpp.
References lock_, and foedus::soc::SharedMutex::uninitialize().
Referenced by foedus::proc::ProcManagerPimpl::uninitialize_once().
LocalProcId foedus::proc::ProcManagerControlBlock::count_ |
Definition at line 55 of file proc_manager_pimpl.hpp.
Referenced by foedus::proc::ProcManagerPimpl::describe_registered_procs(), foedus::proc::ProcManagerPimpl::find_by_name(), initialize(), and foedus::proc::ProcManagerPimpl::insert().
soc::SharedMutex foedus::proc::ProcManagerControlBlock::lock_ |
Mutex to protect data.
Read access via process ID does not need a lock (because we only append to the last). Modifications and reads via name (because it's sorted) needs to take a lock.
Definition at line 54 of file proc_manager_pimpl.hpp.
Referenced by initialize(), foedus::proc::ProcManagerPimpl::insert(), and uninitialize().