#include <swcdb/core/StateSynchronization.h>
Public Member Functions | |
SWC_CAN_INLINE | StateSynchronization () noexcept |
~StateSynchronization () noexcept | |
SWC_CAN_INLINE void | wait () |
SWC_CAN_INLINE void | acknowledge () noexcept |
SWC_CAN_INLINE void | reset () noexcept |
Private Attributes | |
std::mutex | m_mutex |
std::condition_variable | m_cv |
bool | m_ack |
Definition at line 16 of file StateSynchronization.h.
|
inlinenoexcept |
Definition at line 20 of file StateSynchronization.h.
|
inlinenoexcept |
Definition at line 22 of file StateSynchronization.h.
|
inlinenoexcept |
Definition at line 31 of file StateSynchronization.h.
References m_ack, m_cv, and m_mutex.
Referenced by SWC::DB::RgrData::SyncUpdater::callback(), SWC::DB::RgrData::SyncSelector::callback(), SWC::Comm::Protocol::Bkr::Req::ColumnCompact_Sync::callback(), SWC::Comm::Protocol::Mngr::Req::ColumnCompact_Sync::callback(), SWC::Comm::Protocol::Bkr::Req::ColumnMng_Sync::callback(), SWC::Comm::Protocol::Mngr::Req::ColumnMng_Sync::callback(), SWC::Comm::Protocol::Bkr::Req::ColumnGet_Sync::callback(), SWC::Comm::Protocol::Bkr::Req::ColumnList_Sync::callback(), SWC::Comm::Protocol::Mngr::Req::ColumnGet_Sync::callback(), SWC::Comm::Protocol::Mngr::Req::ColumnList_Sync::callback(), SWC::client::Schemas::ColumnGetData::callback(), SWC::Ranger::Callback::ColumnsUnloadAll::complete(), SWC::Comm::Protocol::FsBroker::Req::AppendSync::handle(), SWC::Comm::Protocol::FsBroker::Req::CloseSync::handle(), SWC::Comm::Protocol::FsBroker::Req::CombiPreadSync::handle(), SWC::Comm::Protocol::FsBroker::Req::CreateSync::handle(), SWC::Comm::Protocol::FsBroker::Req::ExistsSync::handle(), SWC::Comm::Protocol::FsBroker::Req::FlushSync::handle(), SWC::Comm::Protocol::FsBroker::Req::LengthSync::handle(), SWC::Comm::Protocol::FsBroker::Req::MkdirsSync::handle(), SWC::Comm::Protocol::FsBroker::Req::OpenSync::handle(), SWC::Comm::Protocol::FsBroker::Req::PreadSync::handle(), SWC::Comm::Protocol::FsBroker::Req::ReadAllSync::handle(), SWC::Comm::Protocol::FsBroker::Req::ReaddirSync::handle(), SWC::Comm::Protocol::FsBroker::Req::ReadSync::handle(), SWC::Comm::Protocol::FsBroker::Req::RemoveSync::handle(), SWC::Comm::Protocol::FsBroker::Req::RenameSync::handle(), SWC::Comm::Protocol::FsBroker::Req::RmdirSync::handle(), SWC::Comm::Protocol::FsBroker::Req::SeekSync::handle(), SWC::Comm::Protocol::FsBroker::Req::SyncSync::handle(), SWC::Comm::Protocol::FsBroker::Req::WriteSync::handle(), SWC::Ranger::RangeSplit::mngr_create_range(), SWC::Ranger::mngr_remove_range(), and SWC::Utils::shell::Rgr::report().
|
inlinenoexcept |
Definition at line 38 of file StateSynchronization.h.
References m_ack.
Referenced by SWC::Utils::shell::Mngr::cluster_status(), SWC::Utils::shell::Mngr::managers_status(), and SWC::Ranger::Callback::ColumnsUnloadAll::wait().
|
inline |
Definition at line 25 of file StateSynchronization.h.
References m_ack, m_cv, and m_mutex.
Referenced by SWC::Utils::shell::Mngr::cluster_status(), SWC::Utils::shell::Mngr::column_status(), SWC::Utils::shell::Mngr::managers_status(), SWC::Ranger::RangeSplit::mngr_create_range(), SWC::Ranger::mngr_remove_range(), SWC::Utils::shell::Mngr::rangers_status(), SWC::Utils::shell::Rgr::report(), SWC::Utils::shell::Rgr::report_resources(), SWC::Ranger::RangeSplit::run(), SWC::Ranger::Callback::ColumnsUnloadAll::wait(), and SWC::client::Schemas::ColumnGetData::wait().
|
private |
Definition at line 45 of file StateSynchronization.h.
Referenced by acknowledge(), reset(), and wait().
|
private |
Definition at line 44 of file StateSynchronization.h.
Referenced by acknowledge(), and wait().
|
private |
Definition at line 43 of file StateSynchronization.h.
Referenced by acknowledge(), and wait().