public inbox for cygwin-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: clocks: Add CLOCK_REALTIME_ALARM/CLOCK_BOOTTIME_ALARM clocks Date: Tue, 22 Jan 2019 14:47:00 -0000 [thread overview] Message-ID: <20190122144702.128379.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=1daece586130467b632f7011395c514b6d8811f8 commit 1daece586130467b632f7011395c514b6d8811f8 Author: Corinna Vinschen <corinna@vinschen.de> Date: Tue Jan 22 15:42:07 2019 +0100 Cygwin: clocks: Add CLOCK_REALTIME_ALARM/CLOCK_BOOTTIME_ALARM clocks Signed-off-by: Corinna Vinschen <corinna@vinschen.de> Diff: --- winsup/cygwin/clock.cc | 4 ++++ winsup/cygwin/clock.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/clock.cc b/winsup/cygwin/clock.cc index 18d6288..9c0b787 100644 --- a/winsup/cygwin/clock.cc +++ b/winsup/cygwin/clock.cc @@ -274,6 +274,8 @@ static clk_monotonic_t clk_monotonic; static clk_monotonic_t clk_monotonic_raw; /* same as clk_monotonic */ static clk_monotonic_coarse_t clk_monotonic_coarse; 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] = { @@ -285,6 +287,8 @@ clk_t *cyg_clock[MAX_CLOCKS] = &clk_monotonic_raw, &clk_monotonic_coarse, &clk_boottime, + &clk_realtime_alarm, + &clk_boottime_alarm, }; clk_t * diff --git a/winsup/cygwin/clock.h b/winsup/cygwin/clock.h index 538b4b2..7323299 100644 --- a/winsup/cygwin/clock.h +++ b/winsup/cygwin/clock.h @@ -12,7 +12,7 @@ details. */ #include <mmsystem.h> /* Must be a power of 2. */ -#define MAX_CLOCKS (8) +#define MAX_CLOCKS (16) /* Conversions for per-process and per-thread clocks */ #define CLOCKID(cid) \
reply other threads:[~2019-01-22 14:47 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20190122144702.128379.qmail@sourceware.org \ --to=corinna@sourceware.org \ --cc=cygwin-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).