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

Search Toolkit Book for SServerNotifications

#include "netschedule_api_impl.hpp"
(Private to src/connect/services.)

+ Collaboration diagram for SServerNotifications:

Public Member Functions

 SServerNotifications ()
 
bool Wait (const CDeadline &deadline)
 
void InterruptWait ()
 
void RegisterServer (const string &ns_node)
 
bool GetNextNotification (string *ns_node)
 

Private Types

typedef set< stringTReadyServers
 

Private Member Functions

void x_ClearInterruptFlag ()
 

Private Attributes

CSemaphore m_NotificationSemaphore
 
CFastMutex m_Mutex
 
TReadyServers m_ReadyServers
 
bool m_Interrupted
 

Detailed Description

Definition at line 215 of file netschedule_api_impl.hpp.

Member Typedef Documentation

◆ TReadyServers

Definition at line 250 of file netschedule_api_impl.hpp.

Constructor & Destructor Documentation

◆ SServerNotifications()

SServerNotifications::SServerNotifications ( )
inline

Definition at line 217 of file netschedule_api_impl.hpp.

Member Function Documentation

◆ GetNextNotification()

bool SServerNotifications::GetNextNotification ( string ns_node)

◆ InterruptWait()

void SServerNotifications::InterruptWait ( )

◆ RegisterServer()

void SServerNotifications::RegisterServer ( const string ns_node)

◆ Wait()

bool SServerNotifications::Wait ( const CDeadline deadline)
inline

Definition at line 223 of file netschedule_api_impl.hpp.

References CDeadline::GetRemainingTime().

◆ x_ClearInterruptFlag()

void SServerNotifications::x_ClearInterruptFlag ( )
inlineprivate

Definition at line 235 of file netschedule_api_impl.hpp.

Referenced by GetNextNotification(), and RegisterServer().

Member Data Documentation

◆ m_Interrupted

bool SServerNotifications::m_Interrupted
private

Definition at line 253 of file netschedule_api_impl.hpp.

Referenced by InterruptWait(), and RegisterServer().

◆ m_Mutex

CFastMutex SServerNotifications::m_Mutex
private

Definition at line 247 of file netschedule_api_impl.hpp.

Referenced by GetNextNotification(), InterruptWait(), and RegisterServer().

◆ m_NotificationSemaphore

CSemaphore SServerNotifications::m_NotificationSemaphore
private

Definition at line 245 of file netschedule_api_impl.hpp.

Referenced by GetNextNotification(), InterruptWait(), and RegisterServer().

◆ m_ReadyServers

TReadyServers SServerNotifications::m_ReadyServers
private

Definition at line 251 of file netschedule_api_impl.hpp.

Referenced by GetNextNotification(), InterruptWait(), and RegisterServer().


The documentation for this struct was generated from the following files:
Modified on Mon Feb 26 04:00:05 2024 by modify_doxy.py rev. 669887