NCBI C++ ToolKit
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SUv_Timer Struct Reference

Search Toolkit Book for SUv_Timer

#include <connect/impl/ncbi_uv_nghttp2.hpp>

+ Inheritance diagram for SUv_Timer:
+ Collaboration diagram for SUv_Timer:

Public Member Functions

 SUv_Timer (void *d, uv_timer_cb cb, uint64_t t, uint64_t r)
 
void Init (uv_loop_t *l)
 
void Start ()
 
void SetRepeat (uint64_t r)
 
void ResetRepeat ()
 
uint64_t GetDefaultRepeat () const
 
void Close ()
 
- Public Member Functions inherited from SUv_Handle< uv_timer_t >
 SUv_Handle (uv_close_cb cb=nullptr)
 
void Close ()
 
void Ref ()
 
void Unref ()
 

Private Member Functions

void Start (uint64_t t, uint64_t r)
 

Private Attributes

uv_timer_cb m_Cb
 
const uint64_t m_Timeout
 
const uint64_t m_Repeat
 

Additional Inherited Members

- Static Public Member Functions inherited from SUv_Handle< uv_timer_t >
static auto GetThat (uv_timer_t *handle)
 

Detailed Description

Definition at line 250 of file ncbi_uv_nghttp2.hpp.

Constructor & Destructor Documentation

◆ SUv_Timer()

SUv_Timer::SUv_Timer ( void *  d,
uv_timer_cb  cb,
uint64_t  t,
uint64_t  r 
)
inline

Definition at line 252 of file ncbi_uv_nghttp2.hpp.

References data.

Member Function Documentation

◆ Close()

void SUv_Timer::Close ( )
inline

◆ GetDefaultRepeat()

uint64_t SUv_Timer::GetDefaultRepeat ( ) const
inline

Definition at line 271 of file ncbi_uv_nghttp2.hpp.

References m_Repeat.

Referenced by SPSG_DiscoveryImpl::SNoServers::operator()().

◆ Init()

void SUv_Timer::Init ( uv_loop_t *  l)
inline

◆ ResetRepeat()

void SUv_Timer::ResetRepeat ( )
inline

Definition at line 269 of file ncbi_uv_nghttp2.hpp.

References m_Repeat, and Start().

Referenced by SPSG_DiscoveryImpl::SNoServers::operator()().

◆ SetRepeat()

void SUv_Timer::SetRepeat ( uint64_t  r)
inline

Definition at line 268 of file ncbi_uv_nghttp2.hpp.

References r(), and Start().

Referenced by SPSG_DiscoveryImpl::SNoServers::operator()().

◆ Start() [1/2]

void SUv_Timer::Start ( )
inline

◆ Start() [2/2]

void SUv_Timer::Start ( uint64_t  t,
uint64_t  r 
)
inlineprivate

Definition at line 283 of file ncbi_uv_nghttp2.hpp.

References ERR_POST, Fatal(), SUvNgHttp2_Error::LibuvStr(), m_Cb, r(), and t.

Member Data Documentation

◆ m_Cb

uv_timer_cb SUv_Timer::m_Cb
private

Definition at line 290 of file ncbi_uv_nghttp2.hpp.

Referenced by Start().

◆ m_Repeat

const uint64_t SUv_Timer::m_Repeat
private

Definition at line 292 of file ncbi_uv_nghttp2.hpp.

Referenced by GetDefaultRepeat(), ResetRepeat(), and Start().

◆ m_Timeout

const uint64_t SUv_Timer::m_Timeout
private

Definition at line 291 of file ncbi_uv_nghttp2.hpp.

Referenced by Start().


The documentation for this struct was generated from the following file:
Modified on Sun May 19 04:42:39 2024 by modify_doxy.py rev. 669887