* [PATCH 2/3] y2038: lib/cobalt/internal: dispatch monitor_wait
@ 2021-07-26 7:16 Song Chen
0 siblings, 0 replies; only message in thread
From: Song Chen @ 2021-07-26 7:16 UTC (permalink / raw)
To: florian.bezdeka, xenomai
If sizeof time_t bigger than 4, which means glibc supports
64bit timespec, go to monitor_wait64.
otherwise, go to original monitor_wait.
Signed-off-by: Song Chen <chensong_2000@189.cn>
---
lib/cobalt/internal.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/cobalt/internal.c b/lib/cobalt/internal.c
index bc3287b..ef3f163 100644
--- a/lib/cobalt/internal.c
+++ b/lib/cobalt/internal.c
@@ -256,8 +256,13 @@ int cobalt_monitor_wait(cobalt_monitor_t *mon, int event,
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, &oldtype);
+#ifdef __USE_TIME_BITS64
+ ret = XENOMAI_SYSCALL4(sc_cobalt_monitor_wait64,
+ mon, event, ts, &opret);
+#else
ret = XENOMAI_SYSCALL4(sc_cobalt_monitor_wait,
mon, event, ts, &opret);
+#endif
pthread_setcanceltype(oldtype, NULL);
--
2.7.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-26 7:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-26 7:16 [PATCH 2/3] y2038: lib/cobalt/internal: dispatch monitor_wait Song Chen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.