NCBI C++ ToolKit
Classes | Functions | Variables
time_man.cpp File Reference
#include "task_server_pch.hpp"
#include <corelib/ncbireg.hpp>
#include "time_man.hpp"
+ Include dependency graph for time_man.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

class  CTZAdjuster
 

Functions

static Uint4 s_InitTZAdjustment (void)
 
void InitTime (void)
 
void InitTimeMan (void)
 
void ConfigureTimeMan (const CNcbiRegistry *reg, CTempString section)
 
bool ReConfig_TimeMan (const CTempString &, const CNcbiRegistry &, string &)
 
void WriteSetup_TimeMan (CSrvSocketTask &task)
 
void IncCurJiffies (void)
 
static void s_Print1Dig (char *&buf, int num)
 
static void s_Print2Digs (char *&buf, int num)
 
static void s_Print3Digs (char *&buf, int num)
 
static void s_Print4Digs (char *&buf, int num)
 
static void s_Print6Digs (char *&buf, int num)
 

Variables

CSrvTime s_SrvStartTime
 
CSrvTime s_LastJiffyTime
 
Uint8 s_CurJiffies = 0
 
CSrvTime s_JiffyTime
 
static time_t s_TZAdjustment = 0
 
static CTZAdjusters_Adjuster = NULL
 

Function Documentation

◆ ConfigureTimeMan()

void ConfigureTimeMan ( const CNcbiRegistry reg,
CTempString  section 
)

◆ IncCurJiffies()

void IncCurJiffies ( void  )

Definition at line 110 of file time_man.cpp.

References CSrvTime::Current(), s_CurJiffies, and s_LastJiffyTime.

Referenced by s_ServiceThreadMain().

◆ InitTime()

void InitTime ( void  )

◆ InitTimeMan()

void InitTimeMan ( void  )

Definition at line 85 of file time_man.cpp.

References s_Adjuster, and CSrvTask::SetRunnable().

Referenced by CTaskServer::Initialize().

◆ ReConfig_TimeMan()

bool ReConfig_TimeMan ( const CTempString section,
const CNcbiRegistry new_reg,
string err_message 
)

Definition at line 98 of file time_man.cpp.

Referenced by CTaskServer::ReConfig().

◆ s_InitTZAdjustment()

static Uint4 s_InitTZAdjustment ( void  )
static

Definition at line 60 of file time_man.cpp.

References CSrvTime::Current(), s_TZAdjustment, CSrvTime::Sec(), and t.

Referenced by CTZAdjuster::ExecuteSlice(), and InitTime().

◆ s_Print1Dig()

static void s_Print1Dig ( char *&  buf,
int  num 
)
inlinestatic

Definition at line 117 of file time_man.cpp.

References buf.

Referenced by s_Print2Digs(), and s_Print3Digs().

◆ s_Print2Digs()

static void s_Print2Digs ( char *&  buf,
int  num 
)
inlinestatic

Definition at line 123 of file time_man.cpp.

References buf, and s_Print1Dig().

Referenced by CSrvTime::Print(), s_Print3Digs(), s_Print4Digs(), and s_Print6Digs().

◆ s_Print3Digs()

static void s_Print3Digs ( char *&  buf,
int  num 
)
inlinestatic

Definition at line 131 of file time_man.cpp.

References buf, s_Print1Dig(), and s_Print2Digs().

◆ s_Print4Digs()

static void s_Print4Digs ( char *&  buf,
int  num 
)
inlinestatic

Definition at line 139 of file time_man.cpp.

References buf, and s_Print2Digs().

Referenced by CSrvTime::Print(), and s_Print6Digs().

◆ s_Print6Digs()

static void s_Print6Digs ( char *&  buf,
int  num 
)
inlinestatic

Definition at line 147 of file time_man.cpp.

References buf, s_Print2Digs(), and s_Print4Digs().

Referenced by CSrvTime::Print().

◆ WriteSetup_TimeMan()

void WriteSetup_TimeMan ( CSrvSocketTask task)

Variable Documentation

◆ s_Adjuster

CTZAdjuster* s_Adjuster = NULL
static

Definition at line 56 of file time_man.cpp.

Referenced by InitTimeMan().

◆ s_CurJiffies

Uint8 s_CurJiffies = 0

◆ s_JiffyTime

CSrvTime s_JiffyTime

◆ s_LastJiffyTime

CSrvTime s_LastJiffyTime

Definition at line 52 of file time_man.cpp.

Referenced by IncCurJiffies(), InitTime(), s_ServiceThreadMain(), and TrackShuttingDown().

◆ s_SrvStartTime

CSrvTime s_SrvStartTime

Definition at line 51 of file time_man.cpp.

Referenced by CTaskServer::GetStartTime(), and InitTime().

◆ s_TZAdjustment

time_t s_TZAdjustment = 0
static

Definition at line 55 of file time_man.cpp.

Referenced by CSrvTime::Print(), s_InitTZAdjustment(), and CSrvTime::TZAdjustment().

Modified on Sat May 25 14:21:28 2024 by modify_doxy.py rev. 669887