* Copyright 2011, Ingo Weinhold, ingo_weinhold@gmx.de.
* Distributed under the terms of the MIT License.
*/
#ifndef _SYSTEM_USER_TIMER_DEFS_H
#define _SYSTEM_USER_TIMER_DEFS_H
#include <limits.h>
#include <time.h>
#include <SupportDefs.h>
#define CLOCK_PROCESS_USER_CPUTIME_ID ((clockid_t)-4)
#define MAX_USER_TIMERS_PER_TEAM _POSIX_TIMER_MAX
#define MAX_USER_TIMER_OVERRUN_COUNT INT_MAX
#if MAX_USER_TIMER_OVERRUN_COUNT < _POSIX_DELAYTIMER_MAX
# error "MAX_USER_TIMER_OVERRUN_COUNT < _POSIX_DELAYTIMER_MAX"
#endif
#define USER_TIMER_REAL_TIME_ID 0
#define USER_TIMER_TEAM_TOTAL_TIME_ID 1
#define USER_TIMER_TEAM_USER_TIME_ID 2
#define USER_TIMER_FIRST_USER_DEFINED_ID 3
#define USER_TIMER_SIGNAL_THREAD 0x01
struct user_timer_info {
bigtime_t remaining_time;
bigtime_t interval;
uint32 overrun_count;
};
#endif