diff options
author | Mark Mitchell <mark@codesourcery.com> | 2002-05-19 17:36:14 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2002-05-19 17:36:14 +0000 |
commit | 61039cd09eed677f690943bca7dc0d122e19ddcb (patch) | |
tree | 1f800047367210ef317746691a9f99de9e9d83a0 /boehm-gc/irix_threads.c | |
parent | bce0deb2b67e54e705e83b6236445d743468c1f2 (diff) | |
download | gcc-61039cd09eed677f690943bca7dc0d122e19ddcb.zip gcc-61039cd09eed677f690943bca7dc0d122e19ddcb.tar.gz gcc-61039cd09eed677f690943bca7dc0d122e19ddcb.tar.bz2 |
irix_threads.cc (GC_pthread_detach): Do not use REAL_FUNC.
* irix_threads.cc (GC_pthread_detach): Do not use REAL_FUNC.
(GC_pthread_create): Fix typo.
(GC_TRY_LOCK): Likewise.
* include/private/gc_locks.h (GC_test_and_set): Only take one
one argument.
(LOCK): Adjust appropriately.
* include/private/gc_priv.h (SIG_SUSPEND): Use SIGRTMIN if
_SIGRTMIN is unavailable.
From-SVN: r53636
Diffstat (limited to 'boehm-gc/irix_threads.c')
-rw-r--r-- | boehm-gc/irix_threads.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/boehm-gc/irix_threads.c b/boehm-gc/irix_threads.c index 12204fd..75b7c63 100644 --- a/boehm-gc/irix_threads.c +++ b/boehm-gc/irix_threads.c @@ -519,7 +519,7 @@ int GC_pthread_detach(pthread_t thread) LOCK(); thread_gc_id = GC_lookup_thread(thread); UNLOCK(); - result = REAL_FUNC(pthread_detach)(thread); + result = pthread_detach(thread); if (result == 0) { LOCK(); thread_gc_id -> flags |= DETACHED; @@ -599,7 +599,7 @@ GC_pthread_create(pthread_t *new_thread, si -> start_routine = start_routine; si -> arg = arg; LOCK(); - if (!GC_initialized) GC_init(); + if (!GC_is_initialized) GC_init(); if (NULL == attr) { stack = 0; (void) pthread_attr_init(&new_attr); @@ -655,7 +655,7 @@ VOLATILE GC_bool GC_collecting = 0; #define SLEEP_THRESHOLD 3 unsigned long GC_allocate_lock = 0; -# define GC_TRY_LOCK() !GC_test_and_set(&GC_allocate_lock,1) +# define GC_TRY_LOCK() !GC_test_and_set(&GC_allocate_lock) # define GC_LOCK_TAKEN GC_allocate_lock void GC_lock() |