xrpld
Loading...
Searching...
No Matches
xrpl::Workers::Worker Class Reference
Inheritance diagram for xrpl::Workers::Worker:
Collaboration diagram for xrpl::Workers::Worker:

Public Member Functions

 Worker (Workers &workers, std::string threadName, int const instance)
 ~Worker ()
void notify ()

Private Member Functions

void run ()

Private Attributes

Workersworkers_
std::string const threadName_
int const instance_
std::thread thread_
std::mutex mutex_
std::condition_variable wakeup_
int wakeCount_ {0}
bool shouldExit_ {false}
std::atomic< Node * > next_

Detailed Description

Definition at line 163 of file Workers.h.

Constructor & Destructor Documentation

◆ Worker()

xrpl::Workers::Worker::Worker ( Workers & workers,
std::string threadName,
int const instance )

Definition at line 144 of file Workers.cpp.

◆ ~Worker()

xrpl::Workers::Worker::~Worker ( )

Definition at line 151 of file Workers.cpp.

Member Function Documentation

◆ notify()

void xrpl::Workers::Worker::notify ( )

Definition at line 164 of file Workers.cpp.

◆ run()

void xrpl::Workers::Worker::run ( )
private

Definition at line 172 of file Workers.cpp.

Member Data Documentation

◆ workers_

Workers& xrpl::Workers::Worker::workers_
private

Definition at line 179 of file Workers.h.

◆ threadName_

std::string const xrpl::Workers::Worker::threadName_
private

Definition at line 180 of file Workers.h.

◆ instance_

int const xrpl::Workers::Worker::instance_
private

Definition at line 181 of file Workers.h.

◆ thread_

std::thread xrpl::Workers::Worker::thread_
private

Definition at line 183 of file Workers.h.

◆ mutex_

std::mutex xrpl::Workers::Worker::mutex_
private

Definition at line 184 of file Workers.h.

◆ wakeup_

std::condition_variable xrpl::Workers::Worker::wakeup_
private

Definition at line 185 of file Workers.h.

◆ wakeCount_

int xrpl::Workers::Worker::wakeCount_ {0}
private

Definition at line 186 of file Workers.h.

◆ shouldExit_

bool xrpl::Workers::Worker::shouldExit_ {false}
private

Definition at line 187 of file Workers.h.

◆ next_

template<class Element, class Tag = void>
std::atomic<Node*> beast::LockFreeStack< Element, Tag >::Node::next_
privateinherited

Definition at line 142 of file LockFreeStack.h.