Bitcoin Core 32.99.0
P2P Digital Currency
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
btcsignals::connection::liveness Class Reference

Track liveness. More...

Inheritance diagram for btcsignals::connection::liveness:
[legend]
Collaboration diagram for btcsignals::connection::liveness:
[legend]

Public Member Functions

bool connected () const
 

Protected Member Functions

 liveness (std::shared_ptr< const void > callback)
 
std::shared_ptr< const void > load () const
 

Private Member Functions

void disconnect ()
 

Private Attributes

detail::atomic_shared_ptr< const void > m_callback
 Callback object, type-erased so connection does not depend on the signal type, and set to null by disconnect().
 

Friends

class connection
 

Detailed Description

Track liveness.

Also serves as a tag for the constructor used by signal.

Definition at line 95 of file btcsignals.h.

Constructor & Destructor Documentation

◆ liveness()

btcsignals::connection::liveness::liveness ( std::shared_ptr< const void >  callback)
inlineexplicitprotected

Definition at line 108 of file btcsignals.h.

Member Function Documentation

◆ connected()

bool btcsignals::connection::liveness::connected ( ) const
inline

Definition at line 113 of file btcsignals.h.

Here is the call graph for this function:

◆ disconnect()

void btcsignals::connection::liveness::disconnect ( )
inlineprivate

Definition at line 105 of file btcsignals.h.

Here is the call graph for this function:

◆ load()

std::shared_ptr< const void > btcsignals::connection::liveness::load ( ) const
inlineprotected

Definition at line 110 of file btcsignals.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ connection

Definition at line 97 of file btcsignals.h.

Member Data Documentation

◆ m_callback

detail::atomic_shared_ptr<const void> btcsignals::connection::liveness::m_callback
private

Callback object, type-erased so connection does not depend on the signal type, and set to null by disconnect().

Signal invocation holds a reference to it while calling it, so a callback disconnected during a call is destroyed when the call returns.

Definition at line 103 of file btcsignals.h.


The documentation for this class was generated from the following file: