summaryrefslogtreecommitdiffstats
path: root/libpthread/linuxthreads/restart.h
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-09-13 02:28:34 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-09-13 02:28:34 +0000
commit07a485defae1ef578c5b3ce0d4373201948a7345 (patch)
tree2184f0f32083bd47ef3b82ad016d8d710f8f221f /libpthread/linuxthreads/restart.h
parent224ca9f63688cdecd80ed01c25f5f62871fe4cfc (diff)
downloaduClibc-alpine-07a485defae1ef578c5b3ce0d4373201948a7345.tar.bz2
uClibc-alpine-07a485defae1ef578c5b3ce0d4373201948a7345.tar.xz
Merge with trunk. "So do that funky merge whiiite boy..."
Diffstat (limited to 'libpthread/linuxthreads/restart.h')
-rw-r--r--libpthread/linuxthreads/restart.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libpthread/linuxthreads/restart.h b/libpthread/linuxthreads/restart.h
index f72fb709f..687d92fae 100644
--- a/libpthread/linuxthreads/restart.h
+++ b/libpthread/linuxthreads/restart.h
@@ -14,13 +14,14 @@
#include <signal.h>
#include <sys/syscall.h>
+#define __ASSUME_REALTIME_SIGNALS defined(__NR_rt_sigaction)
/* Primitives for controlling thread execution */
static inline void restart(pthread_descr th)
{
/* See pthread.c */
-#ifdef __NR_rt_sigaction
+#if __ASSUME_REALTIME_SIGNALS
__pthread_restart_new(th);
#else
__pthread_restart(th);
@@ -30,7 +31,7 @@ static inline void restart(pthread_descr th)
static inline void suspend(pthread_descr self)
{
/* See pthread.c */
-#ifdef __NR_rt_sigaction
+#if __ASSUME_REALTIME_SIGNALS
__pthread_wait_for_restart_signal(self);
#else
__pthread_suspend(self);
@@ -41,7 +42,7 @@ static inline int timedsuspend(pthread_descr self,
const struct timespec *abstime)
{
/* See pthread.c */
-#ifdef __NR_rt_sigaction
+#if __ASSUME_REALTIME_SIGNALS
return __pthread_timedsuspend_new(self, abstime);
#else
return __pthread_timedsuspend(self, abstime);