NAME
ACE_PSOS_Time_t
SYNOPSIS
#include <ace/OS.h>
class ACE_PSOS_Time_t
{
public:
ACE_PSOS_Time_t (void);
ACE_PSOS_Time_t (const timespec_t& t);
operator timespec_t ();
static u_long get_system_time (ACE_PSOS_Time_t& t);
static u_long set_system_time (const ACE_PSOS_Time_t& t);
static u_long init_simulator_time (void);
static const u_long max_ticks;
private:
static const u_long year_mask;
static const u_long month_mask;
static const u_long day_mask;
static const u_long hour_mask;
static const u_long minute_mask;
static const u_long second_mask;
static const int year_shift;
static const int month_shift;
static const int hour_shift;
static const int minute_shift;
static const int year_origin;
static const int month_origin;
static const u_long err_notime;
static const u_long err_illdate;
static const u_long err_illtime;
static const u_long err_illticks;
u_long date_;
u_long time_;
u_long ticks_;
};
Constants for prying info out of the pSOS time encoding.
static const u_long year_mask;
static const u_long month_mask;
static const u_long day_mask;
static const u_long hour_mask;
static const u_long minute_mask;
static const u_long second_mask;
static const int year_shift;
static const int month_shift;
static const int hour_shift;
static const int minute_shift;
static const int year_origin;
static const int month_origin;
error codes
static const u_long err_notime;
system time not set
static const u_long err_illdate;
date out of range
static const u_long err_illtime;
time out of range
static const u_long err_illticks;
ticks out of range
u_long date_;
date : year in bits 31-16, month in bits 15-8, day in bits 7-0
u_long time_;
time : hour in bits 31-16, minutes in bits 15-8, seconds in bits 7-0
u_long ticks_;
ticks: number of system clock ticks (KC_TICKS2SEC-1 max)
AUTHOR
Doug Schmidt [email protected], Jesper S. M|ller [email protected], and a cast of thousands...
The ACE_Sched_Priority type should be used for platform-
independent thread and process priorities, by convention. int should be used for OS-specific priorities.
typedef for the _stat data structure
Giving unique ACE scoped names for some important
RTSignal-Related constants. Becuase sometimes, different platforms use different names for these constants.
LIBRARY
ace