diff options
author | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-06 15:57:44 +0000 |
---|---|---|
committer | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-06 15:57:44 +0000 |
commit | 0c54aa2ab6fe0db4b3dba46e052f082756d128cc (patch) | |
tree | dc48d185a19db78cf86bf3471326b788dfad11d3 /gcc/gthr-posix.h | |
parent | 37f9a2c9d495ad564382391bf83763ca078be9c3 (diff) | |
download | gcc-0c54aa2ab6fe0db4b3dba46e052f082756d128cc.tar.gz |
PR libobjc/19850
* gthr-posix.h (__gthread_objc_thread_detach): Use
_objc_thread_attribs when detaching a thread.
* gthr-posix95.h (__gthread_objc_thread_detach): Same change.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163923 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gthr-posix.h')
-rw-r--r-- | gcc/gthr-posix.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/gthr-posix.h b/gcc/gthr-posix.h index bda43cd33c3..47b88170769 100644 --- a/gcc/gthr-posix.h +++ b/gcc/gthr-posix.h @@ -370,7 +370,8 @@ __gthread_objc_thread_detach (void (*func)(void *), void *arg) if (!__gthread_active_p ()) return NULL; - if (!(__gthrw_(pthread_create) (&new_thread_handle, NULL, (void *) func, arg))) + if (!(__gthrw_(pthread_create) (&new_thread_handle, &_objc_thread_attribs, + (void *) func, arg))) thread_id = (objc_thread_t) new_thread_handle; else thread_id = NULL; |