![]() |
Bitcoin Core 28.99.0
P2P Digital Currency
|
A basic thread-safe queue, used for queuing sockets to be returned by Accept(). More...
#include <net.h>
Public Types | |
using | S = std::unique_ptr< DynSock > |
Public Member Functions | |
void | Push (S s) EXCLUSIVE_LOCKS_REQUIRED(!m_mutex) |
std::optional< S > | Pop () EXCLUSIVE_LOCKS_REQUIRED(!m_mutex) |
bool | Empty () const EXCLUSIVE_LOCKS_REQUIRED(!m_mutex) |
Private Member Functions | |
std::queue< S > m_queue | GUARDED_BY (m_mutex) |
Private Attributes | |
Mutex | m_mutex |
A basic thread-safe queue, used for queuing sockets to be returned by Accept().
using DynSock::Queue::S = std::unique_ptr<DynSock> |