svn commit: trunk/uClibc/libpthread/linuxthreads
vapier at uclibc.org
vapier at uclibc.org
Thu Sep 8 02:58:51 UTC 2005
Author: vapier
Date: 2005-09-07 19:58:50 -0700 (Wed, 07 Sep 2005)
New Revision: 11377
Log:
slight tweak to minimize diffs with glibc
Modified:
trunk/uClibc/libpthread/linuxthreads/restart.h
Changeset:
Modified: trunk/uClibc/libpthread/linuxthreads/restart.h
===================================================================
--- trunk/uClibc/libpthread/linuxthreads/restart.h 2005-09-08 02:58:12 UTC (rev 11376)
+++ trunk/uClibc/libpthread/linuxthreads/restart.h 2005-09-08 02:58:50 UTC (rev 11377)
@@ -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 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 @@
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);
More information about the uClibc-cvs
mailing list