diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-13 17:15:46 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-13 17:15:46 +0000 |
commit | cee68eb12f67394f89388b9acffc550a01f15428 (patch) | |
tree | 128c72e469f0ec2bafd1f380a5bbd79a81facec7 /gcc/gthr-posix.h | |
parent | 15ac79821d8abfd4a7426220b62f1ef36041d326 (diff) | |
download | gcc-cee68eb12f67394f89388b9acffc550a01f15428.tar.gz |
* gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
into the function and constify it.
* gthr-dce.h, gthr-solaris.h: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50741 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gthr-posix.h')
-rw-r--r-- | gcc/gthr-posix.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/gthr-posix.h b/gcc/gthr-posix.h index fe9e584bbb7..58bfcb36872 100644 --- a/gcc/gthr-posix.h +++ b/gcc/gthr-posix.h @@ -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; } |