rippled
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
beast::detail::seconds_clock_thread Class Reference
Collaboration diagram for beast::detail::seconds_clock_thread:
Collaboration graph
[legend]

Public Types

using mutex = std::mutex
 
using cond_var = std::condition_variable
 
using unique_lock = std::unique_lock< mutex >
 
using clock_type = std::chrono::steady_clock
 
using seconds = std::chrono::seconds
 
using thread = std::thread
 
using workers = std::vector< seconds_clock_worker * >
 

Public Member Functions

 seconds_clock_thread ()
 
 ~seconds_clock_thread ()
 
void add (seconds_clock_worker &w)
 
void remove (seconds_clock_worker &w)
 
void stop ()
 
void run ()
 

Static Public Member Functions

static seconds_clock_threadinstance ()
 

Public Attributes

bool stop_
 
mutex mutex_
 
cond_var cond_
 
workers workers_
 
thread thread_
 

Detailed Description

Definition at line 51 of file basic_seconds_clock.h.

Member Typedef Documentation

◆ mutex

Definition at line 54 of file basic_seconds_clock.h.

◆ cond_var

Definition at line 55 of file basic_seconds_clock.h.

◆ unique_lock

Definition at line 56 of file basic_seconds_clock.h.

◆ clock_type

Definition at line 57 of file basic_seconds_clock.h.

◆ seconds

Definition at line 58 of file basic_seconds_clock.h.

◆ thread

Definition at line 59 of file basic_seconds_clock.h.

◆ workers

Definition at line 60 of file basic_seconds_clock.h.

Constructor & Destructor Documentation

◆ seconds_clock_thread()

beast::detail::seconds_clock_thread::seconds_clock_thread ( )

Definition at line 68 of file basic_seconds_clock.h.

◆ ~seconds_clock_thread()

beast::detail::seconds_clock_thread::~seconds_clock_thread ( )

Definition at line 73 of file basic_seconds_clock.h.

Member Function Documentation

◆ add()

void beast::detail::seconds_clock_thread::add ( seconds_clock_worker w)

Definition at line 79 of file basic_seconds_clock.h.

◆ remove()

void beast::detail::seconds_clock_thread::remove ( seconds_clock_worker w)

Definition at line 86 of file basic_seconds_clock.h.

◆ stop()

void beast::detail::seconds_clock_thread::stop ( )

Definition at line 93 of file basic_seconds_clock.h.

◆ run()

void beast::detail::seconds_clock_thread::run ( )

Definition at line 107 of file basic_seconds_clock.h.

◆ instance()

static seconds_clock_thread& beast::detail::seconds_clock_thread::instance ( )
static

Definition at line 128 of file basic_seconds_clock.h.

Member Data Documentation

◆ stop_

bool beast::detail::seconds_clock_thread::stop_

Definition at line 62 of file basic_seconds_clock.h.

◆ mutex_

mutex beast::detail::seconds_clock_thread::mutex_

Definition at line 63 of file basic_seconds_clock.h.

◆ cond_

cond_var beast::detail::seconds_clock_thread::cond_

Definition at line 64 of file basic_seconds_clock.h.

◆ workers_

workers beast::detail::seconds_clock_thread::workers_

Definition at line 65 of file basic_seconds_clock.h.

◆ thread_

thread beast::detail::seconds_clock_thread::thread_

Definition at line 66 of file basic_seconds_clock.h.