rippled
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ripple::Workers::Worker Class Reference
Inheritance diagram for ripple::Workers::Worker:
Inheritance graph
[legend]
Collaboration diagram for ripple::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 166 of file Workers.h.

Constructor & Destructor Documentation

◆ Worker()

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

Definition at line 142 of file Workers.cpp.

◆ ~Worker()

ripple::Workers::Worker::~Worker ( )

Definition at line 155 of file Workers.cpp.

Member Function Documentation

◆ notify()

void ripple::Workers::Worker::notify ( )

Definition at line 168 of file Workers.cpp.

◆ run()

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

Definition at line 176 of file Workers.cpp.

Member Data Documentation

◆ m_workers

Workers& ripple::Workers::Worker::m_workers
private

Definition at line 185 of file Workers.h.

◆ threadName_

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

Definition at line 186 of file Workers.h.

◆ instance_

int const ripple::Workers::Worker::instance_
private

Definition at line 187 of file Workers.h.

◆ thread_

std::thread ripple::Workers::Worker::thread_
private

Definition at line 189 of file Workers.h.

◆ mutex_

std::mutex ripple::Workers::Worker::mutex_
private

Definition at line 190 of file Workers.h.

◆ wakeup_

std::condition_variable ripple::Workers::Worker::wakeup_
private

Definition at line 191 of file Workers.h.

◆ wakeCount_

int ripple::Workers::Worker::wakeCount_
private

Definition at line 192 of file Workers.h.

◆ shouldExit_

bool ripple::Workers::Worker::shouldExit_
private

Definition at line 193 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.