aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/sched.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2018-11-27 13:47:02 +0100
committerCorinna Vinschen <corinna@vinschen.de>2018-11-29 11:05:42 +0100
commitc05df02725c5986d029eeec63beb467bdd6286ef (patch)
tree0909ef492429678576c087f34b71937dc8ad0665 /winsup/cygwin/sched.cc
parentf4d6ef2d417e0fc10a159ab64827f837c9a3be84 (diff)
downloadnewlib-c05df02725c5986d029eeec63beb467bdd6286ef.zip
newlib-c05df02725c5986d029eeec63beb467bdd6286ef.tar.gz
newlib-c05df02725c5986d029eeec63beb467bdd6286ef.tar.bz2
Cygwin: implement extensible clock interface
- Drop hires_[nm]s clocks, rename hires.h to clock.h. - Implement clk_t class as an extensible clock class in new file clock.cc. - Introduce get_clock(clock_id) returning a pointer to the clk_t instance for clock_id. Provide the following methods along the lines of the former hires classes: void clk_t::nsecs (struct timespec *); ULONGLONG clk_t::nsecs (); LONGLONG clk_t::usecs (); LONGLONG clk_t::msecs (); void clk_t::resolution (struct timespec *); - Add CLOCK_REALTIME_COARSE, CLOCK_MONOTONIC_RAW, CLOCK_MONOTONIC_COARSE and CLOCK_BOOTTIME clocks. - Allow clock_nanosleep, pthread_condattr_setclock and timer_create to use all new clocks (both clocks should be usable with a small tweak, though). - Bump DLL major version to 2.12. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/sched.cc')
-rw-r--r--winsup/cygwin/sched.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/sched.cc b/winsup/cygwin/sched.cc
index 702d038..10168e6 100644
--- a/winsup/cygwin/sched.cc
+++ b/winsup/cygwin/sched.cc
@@ -12,7 +12,7 @@
#include "miscfuncs.h"
#include "cygerrno.h"
#include "pinfo.h"
-#include "hires.h"
+#include "clock.h"
/* for getpid */
#include <unistd.h>
#include <sys/param.h>