Cygwin: clocks: Add CLOCK_REALTIME_ALARM/CLOCK_BOOTTIME_ALARM clocks
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
13ea67a3c6
commit
1daece5861
@ -274,6 +274,8 @@ static clk_monotonic_t clk_monotonic;
|
|||||||
static clk_monotonic_t clk_monotonic_raw; /* same as clk_monotonic */
|
static clk_monotonic_t clk_monotonic_raw; /* same as clk_monotonic */
|
||||||
static clk_monotonic_coarse_t clk_monotonic_coarse;
|
static clk_monotonic_coarse_t clk_monotonic_coarse;
|
||||||
static clk_boottime_t clk_boottime;
|
static clk_boottime_t clk_boottime;
|
||||||
|
static clk_realtime_t clk_realtime_alarm; /* same as clk_realtime */
|
||||||
|
static clk_boottime_t clk_boottime_alarm; /* same as clk_boottime_t */
|
||||||
|
|
||||||
clk_t *cyg_clock[MAX_CLOCKS] =
|
clk_t *cyg_clock[MAX_CLOCKS] =
|
||||||
{
|
{
|
||||||
@ -285,6 +287,8 @@ clk_t *cyg_clock[MAX_CLOCKS] =
|
|||||||
&clk_monotonic_raw,
|
&clk_monotonic_raw,
|
||||||
&clk_monotonic_coarse,
|
&clk_monotonic_coarse,
|
||||||
&clk_boottime,
|
&clk_boottime,
|
||||||
|
&clk_realtime_alarm,
|
||||||
|
&clk_boottime_alarm,
|
||||||
};
|
};
|
||||||
|
|
||||||
clk_t *
|
clk_t *
|
||||||
|
@ -12,7 +12,7 @@ details. */
|
|||||||
#include <mmsystem.h>
|
#include <mmsystem.h>
|
||||||
|
|
||||||
/* Must be a power of 2. */
|
/* Must be a power of 2. */
|
||||||
#define MAX_CLOCKS (8)
|
#define MAX_CLOCKS (16)
|
||||||
|
|
||||||
/* Conversions for per-process and per-thread clocks */
|
/* Conversions for per-process and per-thread clocks */
|
||||||
#define CLOCKID(cid) \
|
#define CLOCKID(cid) \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user