Commit 7a8de19b by Jason Merrill Committed by Jason Merrill

gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr into the function and constify it.

        * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
        into the function and constify it.
        * gthr-dce.h, gthr-solaris.h: Likewise.

From-SVN: r50741
parent 872c9284
2002-03-13 Jason Merrill <jason@redhat.com>
* gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
into the function and constify it.
* gthr-dce.h, gthr-solaris.h: Likewise.
2002-03-13 David Edelsohn <edelsohn@gnu.org>
* config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
......
......@@ -87,11 +87,10 @@ typedef pthread_mutex_t __gthread_mutex_t;
#pragma weak pthread_yield
#endif
static void *__gthread_active_ptr = (void *) &pthread_create;
static inline int
__gthread_active_p (void)
{
static void *const __gthread_active_ptr = (void *) &pthread_create;
return __gthread_active_ptr != 0;
}
......
......@@ -77,11 +77,10 @@ typedef pthread_mutex_t __gthread_mutex_t;
#pragma weak pthread_setschedparam
#endif
static void *__gthread_active_ptr = (void *) &pthread_create;
static inline int
__gthread_active_p (void)
{
static void *const __gthread_active_ptr = (void *) &pthread_create;
return __gthread_active_ptr != 0;
}
......
......@@ -81,11 +81,10 @@ typedef mutex_t __gthread_mutex_t;
/* This will not actually work in Solaris 2.5, since libc contains
dummy symbols of all thr_* routines. */
static void *__gthread_active_ptr = (void *) &thr_create;
static inline int
__gthread_active_p (void)
{
static void *const __gthread_active_ptr = (void *) &thr_create;
return __gthread_active_ptr != 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment