libfoedus-core
FOEDUS Core Library
|
Represents a group of pre-allocated threads running in one NUMA node. More...
Represents a group of pre-allocated threads running in one NUMA node.
Detailed description of this class.
Definition at line 38 of file thread_group.hpp.
#include <thread_group.hpp>
Public Member Functions | |
ThreadGroup ()=delete | |
ThreadGroup (Engine *engine, ThreadGroupId group_id) | |
~ThreadGroup () | |
ErrorStack | initialize_once () override |
ErrorStack | uninitialize_once () override |
ThreadGroupId | get_group_id () const |
memory::NumaNodeMemory * | get_node_memory () const |
Thread * | get_thread (ThreadLocalOrdinal ordinal) const |
Returns Thread object for the given ordinal in this group. More... | |
![]() | |
DefaultInitializable () | |
virtual | ~DefaultInitializable () |
DefaultInitializable (const DefaultInitializable &)=delete | |
DefaultInitializable & | operator= (const DefaultInitializable &)=delete |
ErrorStack | initialize () override final |
Typical implementation of Initializable::initialize() that provides initialize-once semantics. More... | |
ErrorStack | uninitialize () override final |
Typical implementation of Initializable::uninitialize() that provides uninitialize-once semantics. More... | |
bool | is_initialized () const override final |
Returns whether the object has been already initialized or not. More... | |
![]() | |
virtual | ~Initializable () |
Friends | |
std::ostream & | operator<< (std::ostream &o, const ThreadGroup &v) |
|
delete |
foedus::thread::ThreadGroup::ThreadGroup | ( | Engine * | engine, |
ThreadGroupId | group_id | ||
) |
Definition at line 32 of file thread_group.cpp.
foedus::thread::ThreadGroup::~ThreadGroup | ( | ) |
Definition at line 35 of file thread_group.cpp.
|
inline |
Definition at line 46 of file thread_group.hpp.
|
inline |
Definition at line 47 of file thread_group.hpp.
|
inline |
Returns Thread object for the given ordinal in this group.
Definition at line 50 of file thread_group.hpp.
Referenced by foedus::log::Logger::initialize_once().
|
overridevirtual |
Implements foedus::DefaultInitializable.
Definition at line 38 of file thread_group.cpp.
References CHECK_ERROR, foedus::thread::compose_thread_id(), foedus::memory::EngineMemory::get_local_memory(), foedus::Engine::get_memory_manager(), foedus::Engine::get_options(), foedus::kRetOk, foedus::EngineOptions::thread_, foedus::thread::ThreadOptions::thread_count_per_group_, and foedus::thread::to_global_ordinal().
|
overridevirtual |
Implements foedus::DefaultInitializable.
Definition at line 50 of file thread_group.cpp.
References SUMMARIZE_ERROR_BATCH, and foedus::ErrorStackBatch::uninitialize_and_delete_all().
|
friend |
Definition at line 57 of file thread_group.cpp.