NCBI C++ ToolKit
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
SPSG_Thread< TImpl > Struct Template Reference

Search Toolkit Book for SPSG_Thread

#include "psg_client_transport.hpp"
(Private to src/objtools/pubseq_gateway/client.)

+ Inheritance diagram for SPSG_Thread< TImpl >:
+ Collaboration diagram for SPSG_Thread< TImpl >:

Public Member Functions

template<class... TArgs>
 SPSG_Thread (SUv_Barrier &start_barrier, SUv_Barrier &stop_barrier, uint64_t timeout, uint64_t repeat, TArgs &&... args)
 
 ~SPSG_Thread ()
 
void Shutdown ()
 

Static Private Member Functions

static void s_OnShutdown (uv_async_t *handle)
 
static void s_OnTimer (uv_timer_t *handle)
 
static void s_Execute (SPSG_Thread *io, SUv_Barrier &start_barrier, SUv_Barrier &stop_barrier)
 

Private Attributes

SUv_Async m_Shutdown
 
SUv_Timer m_Timer
 
thread m_Thread
 

Detailed Description

template<class TImpl>
struct SPSG_Thread< TImpl >

Definition at line 842 of file psg_client_transport.hpp.

Constructor & Destructor Documentation

◆ SPSG_Thread()

template<class TImpl >
template<class... TArgs>
SPSG_Thread< TImpl >::SPSG_Thread ( SUv_Barrier start_barrier,
SUv_Barrier stop_barrier,
uint64_t  timeout,
uint64_t  repeat,
TArgs &&...  args 
)
inline

Definition at line 845 of file psg_client_transport.hpp.

◆ ~SPSG_Thread()

template<class TImpl >
SPSG_Thread< TImpl >::~SPSG_Thread ( )
inline

Definition at line 851 of file psg_client_transport.hpp.

Member Function Documentation

◆ s_Execute()

template<class TImpl >
static void SPSG_Thread< TImpl >::s_Execute ( SPSG_Thread< TImpl > *  io,
SUv_Barrier start_barrier,
SUv_Barrier stop_barrier 
)
inlinestaticprivate

Definition at line 878 of file psg_client_transport.hpp.

◆ s_OnShutdown()

template<class TImpl >
static void SPSG_Thread< TImpl >::s_OnShutdown ( uv_async_t *  handle)
inlinestaticprivate

◆ s_OnTimer()

template<class TImpl >
static void SPSG_Thread< TImpl >::s_OnTimer ( uv_timer_t *  handle)
inlinestaticprivate

Definition at line 872 of file psg_client_transport.hpp.

◆ Shutdown()

template<class TImpl >
void SPSG_Thread< TImpl >::Shutdown ( void  )
inline

Definition at line 858 of file psg_client_transport.hpp.

Referenced by SPSG_IoCoordinator::~SPSG_IoCoordinator().

Member Data Documentation

◆ m_Shutdown

template<class TImpl >
SUv_Async SPSG_Thread< TImpl >::m_Shutdown
private

◆ m_Thread

template<class TImpl >
thread SPSG_Thread< TImpl >::m_Thread
private

◆ m_Timer

template<class TImpl >
SUv_Timer SPSG_Thread< TImpl >::m_Timer
private

The documentation for this struct was generated from the following file:
Modified on Wed May 29 18:38:17 2024 by modify_doxy.py rev. 669887