NCBI C++ ToolKit
Typedefs | Functions | Variables
peer_control.cpp File Reference
#include "nc_pch.hpp"
#include <util/random_gen.hpp>
#include "netcached.hpp"
#include "peer_control.hpp"
#include "active_handler.hpp"
#include "periodic_sync.hpp"
#include "distribution_conf.hpp"
#include "nc_storage_blob.hpp"
+ Include dependency graph for peer_control.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Typedefs

typedef map< Uint8, CNCPeerControl * > TControlMap
 

Functions

static void s_SetNextTime (Uint8 &next_time, Uint8 value, bool add_random)
 

Variables

static CMiniMutex s_MapLock
 
static TControlMap s_Controls
 
static CAtomicCounter s_SyncOnInit
 
static CAtomicCounter s_WaitToOpenToClients
 
static CAtomicCounter s_AbortedSyncClients
 
static CAtomicCounter s_MirrorQueueSize
 
static FILE * s_MirrorLogFile = NULL
 
static CNCPeerShutdowns_ShutdownListener = NULL
 
static Uint4 s_ServersToSync = 0
 
static CMiniMutex s_RndLock
 
static CRandom s_Rnd (CRandom::TValue(time(NULL)))
 

Typedef Documentation

◆ TControlMap

Definition at line 45 of file peer_control.cpp.

Function Documentation

◆ s_SetNextTime()

static void s_SetNextTime ( Uint8 next_time,
Uint8  value,
bool  add_random 
)
static

Variable Documentation

◆ s_AbortedSyncClients

CAtomicCounter s_AbortedSyncClients
static

◆ s_Controls

TControlMap s_Controls
static

◆ s_MapLock

CMiniMutex s_MapLock
static

◆ s_MirrorLogFile

FILE* s_MirrorLogFile = NULL
static

◆ s_MirrorQueueSize

CAtomicCounter s_MirrorQueueSize
static

◆ s_Rnd

CRandom s_Rnd(CRandom::TValue(time(NULL))) ( CRandom::TValue(time(NULL))  )
static

Referenced by s_SetNextTime().

◆ s_RndLock

CMiniMutex s_RndLock
static

Definition at line 64 of file peer_control.cpp.

Referenced by s_GetRand(), and s_SetNextTime().

◆ s_ServersToSync

Uint4 s_ServersToSync = 0
static

◆ s_ShutdownListener

CNCPeerShutdown* s_ShutdownListener = NULL
static

Definition at line 59 of file peer_control.cpp.

Referenced by CNCPeerControl::Initialize(), and CNCPeerControl::Peer().

◆ s_SyncOnInit

CAtomicCounter s_SyncOnInit
static

◆ s_WaitToOpenToClients

CAtomicCounter s_WaitToOpenToClients
static
Modified on Tue Apr 23 07:36:52 2024 by modify_doxy.py rev. 669887