mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 17:35:06 -05:00
Use enum for scheduler timeout classes
This commit is contained in:
10
sched.h
10
sched.h
@@ -35,10 +35,12 @@
|
|||||||
|
|
||||||
typedef unsigned long SCH_TimeoutID;
|
typedef unsigned long SCH_TimeoutID;
|
||||||
|
|
||||||
typedef unsigned long SCH_TimeoutClass;
|
typedef enum {
|
||||||
static const SCH_TimeoutClass SCH_ReservedTimeoutValue = 0;
|
SCH_ReservedTimeoutValue = 0,
|
||||||
static const SCH_TimeoutClass SCH_NtpSamplingClass = 1;
|
SCH_NtpSamplingClass,
|
||||||
static const SCH_TimeoutClass SCH_NtpBroadcastClass = 2;
|
SCH_NtpBroadcastClass,
|
||||||
|
SCH_NumberOfClasses /* needs to be last */
|
||||||
|
} SCH_TimeoutClass;
|
||||||
|
|
||||||
typedef void* SCH_ArbitraryArgument;
|
typedef void* SCH_ArbitraryArgument;
|
||||||
typedef void (*SCH_FileHandler)(SCH_ArbitraryArgument);
|
typedef void (*SCH_FileHandler)(SCH_ArbitraryArgument);
|
||||||
|
|||||||
Reference in New Issue
Block a user