diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2002-06-04 11:30:46 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2002-06-04 11:30:46 +0000 |
commit | 589005ff217dde6c3c22842e27315d597a8fe710 (patch) | |
tree | e46147f472cc001827083ec7631a1140948ce7c6 /gcc/gthr-solaris.h | |
parent | 94213cff2aab4c3107aad20145838219caa829e0 (diff) | |
download | gcc-589005ff217dde6c3c22842e27315d597a8fe710.zip gcc-589005ff217dde6c3c22842e27315d597a8fe710.tar.gz gcc-589005ff217dde6c3c22842e27315d597a8fe710.tar.bz2 |
gbl-ctors.h: Fix formatting.
* gbl-ctors.h: Fix formatting.
* gcc.c: Likewise.
* gccspec.c: Likewise.
* gcov.c: Likewise.
* gcov-io.h: Likewise.
* gcse.c: Likewise.
* ggc-common.c: Likewise.
* ggc.h: Likewise.
* ggc-page.c: Likewise.
* ggc-simple.c: Likewise.
* global.c: Likewise.
* graph.h: Likewise.
* gthr-dce.h: Likewise.
* gthr.h: Likewise.
* gthr-posix.h: Likewise.
* gthr-rtems.h: Likewise.
* gthr-solaris.h: Likewise.
* gthr-win32.h: Likewise.
From-SVN: r54240
Diffstat (limited to 'gcc/gthr-solaris.h')
-rw-r--r-- | gcc/gthr-solaris.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/gthr-solaris.h b/gcc/gthr-solaris.h index 6d7ff25..0ad6194 100644 --- a/gcc/gthr-solaris.h +++ b/gcc/gthr-solaris.h @@ -141,14 +141,14 @@ __gthread_objc_thread_detach(void (*func)(void *), void *arg) if (!__gthread_active_p ()) return NULL; - + if (thr_create(NULL, 0, (void *)func, arg, - THR_DETACHED | THR_NEW_LWP, + THR_DETACHED | THR_NEW_LWP, &new_thread_id) == 0) thread_id = *(objc_thread_t *)&new_thread_id; else thread_id = NULL; - + return thread_id; } @@ -190,7 +190,7 @@ __gthread_objc_thread_get_priority(void) if (!__gthread_active_p ()) return OBJC_THREAD_INTERACTIVE_PRIORITY; - + if (thr_getprio(thr_self(), &sys_priority) == 0) { if (sys_priority >= 250) @@ -333,7 +333,7 @@ __gthread_objc_condition_allocate(objc_condition_t condition) { if (__gthread_active_p ()) return cond_init((cond_t *)(&(condition->backend)), USYNC_THREAD, - NULL); + NULL); else return 0; } @@ -354,7 +354,7 @@ __gthread_objc_condition_wait(objc_condition_t condition, objc_mutex_t mutex) { if (__gthread_active_p ()) return cond_wait((cond_t *)(&(condition->backend)), - (mutex_t *)(&(mutex->backend))); + (mutex_t *)(&(mutex->backend))); else return 0; } |