rippled
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
xrpl::Workers::Worker Class Reference
Inheritance diagram for xrpl::Workers::Worker:
Inheritance graph
[legend]
Collaboration diagram for xrpl::Workers::Worker:
Collaboration graph
[legend]

Public Member Functions

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

Private Member Functions

void run ()
 

Private Attributes

Workersm_workers
 
std::string const threadName_
 
int const instance_
 
std::thread thread_
 
std::mutex mutex_
 
std::condition_variable wakeup_
 
int wakeCount_
 
bool shouldExit_
 
std::atomic< Node * > m_next
 

Detailed Description

Definition at line 165 of file Workers.h.

Constructor & Destructor Documentation

◆ Worker()

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

Definition at line 141 of file Workers.cpp.

◆ ~Worker()

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

Definition at line 154 of file Workers.cpp.

Member Function Documentation

◆ notify()

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

Definition at line 167 of file Workers.cpp.

◆ run()

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

Definition at line 175 of file Workers.cpp.

Member Data Documentation

◆ m_workers

Workers& xrpl::Workers::Worker::m_workers
private

Definition at line 184 of file Workers.h.

◆ threadName_

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

Definition at line 185 of file Workers.h.

◆ instance_

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

Definition at line 186 of file Workers.h.

◆ thread_

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

Definition at line 188 of file Workers.h.

◆ mutex_

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

Definition at line 189 of file Workers.h.

◆ wakeup_

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

Definition at line 190 of file Workers.h.

◆ wakeCount_

int xrpl::Workers::Worker::wakeCount_
private

Definition at line 191 of file Workers.h.

◆ shouldExit_

bool xrpl::Workers::Worker::shouldExit_
private

Definition at line 192 of file Workers.h.

◆ m_next

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

Definition at line 151 of file LockFreeStack.h.