From 150f740ace60e238094cde1ecf03e5c1c0e0d3ff Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 15 Apr 2000 17:39:36 +0000 Subject: Update. * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in compat_symbol call for old adjtime. * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init --- linuxthreads/restart.h | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'linuxthreads/restart.h') diff --git a/linuxthreads/restart.h b/linuxthreads/restart.h index 0a69309..24d9fab 100644 --- a/linuxthreads/restart.h +++ b/linuxthreads/restart.h @@ -13,21 +13,37 @@ /* GNU Library General Public License for more details. */ #include +#include /* Primitives for controlling thread execution */ static inline void restart(pthread_descr th) { - __pthread_restart(th); /* see pthread.c */ + /* See pthread.c */ +#if __ASSUME_REALTIME_SIGNALS + __pthread_restart_new(th); +#else + __pthread_restart(th); +#endif } static inline void suspend(pthread_descr self) { - __pthread_suspend(self); /* see pthread.c */ + /* See pthread.c */ +#if __ASSUME_REALTIME_SIGNALS + __pthread_wait_for_restart_signal(self); +#else + __pthread_suspend(self); +#endif } -static inline int timedsuspend(pthread_descr self, +static inline int timedsuspend(pthread_descr self, const struct timespec *abstime) { - return __pthread_timedsuspend(self, abstime); /* see pthread.c */ + /* See pthread.c */ +#if __ASSUME_REALTIME_SIGNALS + return __pthread_timedsuspend_new(self, abstime); +#else + return __pthread_timedsuspend(self, abstime); +#endif } -- cgit v1.1