timer_driver.cpp File Reference

#include "timer_driver.h"
#include <basis/function.h>
#include <basis/log_base.h>
#include <basis/mutex.h>
#include <basis/portable.h>
#include <basis/utility.h>
#include <data_struct/amorph.cpp>
#include <data_struct/static_memory_gremlin.h>
#include <mechanisms/ithread.h>
#include <mechanisms/time_stamp.h>
#include <signal.h>
#include <stdio.h>
#include <sys/time.h>

Include dependency graph for timer_driver.cpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define LOG(tpr)   printf( (utility::timestamp(true, true) + " timer_driver::" + func + tpr).s() )
#define static_class_name()   "timer_driver"

Functions

void timer_driver_private_handler (int signal_seen)

Variables

const int INITIAL_TIMER_GRANULARITY = 14
const int MAX_TIMER_PREDICTION = 140
const int PAUSE_TIME = 200
const int LONG_TIME = 1 * HOUR_ms
const int OUR_SIGNAL = SIGUSR2


Define Documentation

#define LOG ( tpr   )     printf( (utility::timestamp(true, true) + " timer_driver::" + func + tpr).s() )

Definition at line 40 of file timer_driver.cpp.

 
#define static_class_name (  )     "timer_driver"


Function Documentation

void timer_driver_private_handler ( int  signal_seen  ) 

Definition at line 85 of file timer_driver.cpp.

References amorph< contents >::borrow(), amorph< contents >::elements(), FUNCDEF, IMPLEMENT_CLASS_NAME, LOG, common::NOT_FOUND, OUR_SIGNAL, and program_wide_timer.

Referenced by timer_driver::timer_driver().


Variable Documentation

const int INITIAL_TIMER_GRANULARITY = 14

Definition at line 42 of file timer_driver.cpp.

Referenced by timer_driver::handle_system_timer(), and timer_driver::timer_driver().

const int LONG_TIME = 1 * HOUR_ms

Definition at line 55 of file timer_driver.cpp.

const int MAX_TIMER_PREDICTION = 140

Definition at line 46 of file timer_driver.cpp.

Referenced by timer_driver::handle_system_timer().

const int OUR_SIGNAL = SIGUSR2

Definition at line 69 of file timer_driver.cpp.

Referenced by timer_driver::timer_driver(), timer_driver_private_handler(), and timer_driver::~timer_driver().

const int PAUSE_TIME = 200

Definition at line 51 of file timer_driver.cpp.

Referenced by spocket_tester::do_a_receive(), spocket_tester::do_a_send(), and timer_driver::~timer_driver().


Generated on Sat Oct 11 04:29:42 2008 for HOOPLE Libraries by  doxygen 1.5.1