Bitcoin Core 29.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
mp::EventLoopRef Class Reference

Event loop smart pointer automatically managing m_num_clients. More...

#include <proxy.h>

Collaboration diagram for mp::EventLoopRef:
[legend]

Public Member Functions

 EventLoopRef (EventLoop &loop, Lock *lock=nullptr)
 
 EventLoopRef (EventLoopRef &&other) noexcept
 
 EventLoopRef (const EventLoopRef &)=delete
 
EventLoopRefoperator= (const EventLoopRef &)=delete
 
EventLoopRefoperator= (EventLoopRef &&)=delete
 
 ~EventLoopRef ()
 
EventLoopoperator* () const
 
EventLoopoperator-> () const
 
void reset (bool relock=false)
 

Public Attributes

EventLoopm_loop {nullptr}
 
Lockm_lock {nullptr}
 

Detailed Description

Event loop smart pointer automatically managing m_num_clients.

If a lock pointer argument is passed, the specified lock will be used, otherwise EventLoop::m_mutex will be locked when needed.

Definition at line 50 of file proxy.h.

Constructor & Destructor Documentation

◆ EventLoopRef() [1/3]

mp::EventLoopRef::EventLoopRef ( EventLoop loop,
Lock lock = nullptr 
)
explicit

Definition at line 48 of file proxy.cpp.

◆ EventLoopRef() [2/3]

mp::EventLoopRef::EventLoopRef ( EventLoopRef &&  other)
inlinenoexcept

Definition at line 54 of file proxy.h.

◆ EventLoopRef() [3/3]

mp::EventLoopRef::EventLoopRef ( const EventLoopRef )
delete

◆ ~EventLoopRef()

mp::EventLoopRef::~EventLoopRef ( )
inline

Definition at line 58 of file proxy.h.

Here is the call graph for this function:

Member Function Documentation

◆ operator*()

EventLoop & mp::EventLoopRef::operator* ( ) const
inline

Definition at line 59 of file proxy.h.

Here is the call graph for this function:

◆ operator->()

EventLoop * mp::EventLoopRef::operator-> ( ) const
inline

Definition at line 60 of file proxy.h.

Here is the call graph for this function:

◆ operator=() [1/2]

EventLoopRef & mp::EventLoopRef::operator= ( const EventLoopRef )
delete

◆ operator=() [2/2]

EventLoopRef & mp::EventLoopRef::operator= ( EventLoopRef &&  )
delete

◆ reset()

void mp::EventLoopRef::reset ( bool  relock = false)

Definition at line 58 of file proxy.cpp.

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

Member Data Documentation

◆ m_lock

Lock* mp::EventLoopRef::m_lock {nullptr}

Definition at line 64 of file proxy.h.

◆ m_loop

EventLoop* mp::EventLoopRef::m_loop {nullptr}

Definition at line 63 of file proxy.h.


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