diff options
author | rpj <rpj> | 1998-07-24 07:52:30 +0000 |
---|---|---|
committer | rpj <rpj> | 1998-07-24 07:52:30 +0000 |
commit | 82fa43b768e09bf30669351b61eb2f94cb1c71a3 (patch) | |
tree | 99580bdb1b8a40ef7580537aea2b874e01b96849 /create.c | |
parent | d0870a69bfaea4e1c57b2fced2477b0546bb7006 (diff) |
Fri Jul 24 16:33:17 1998 Ross Johnson <rpj@swan.canberra.edu.au>
* sync.c (pthread_detach): Use equality test, not assignment.
* create.c (_pthread_start_call): Add call to Win32 CloseHandle()
if thread is detached.
Diffstat (limited to 'create.c')
-rw-r--r-- | create.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -24,6 +24,11 @@ _pthread_start_call(void * thisarg) unsigned ret; int from; + if (this->detached == PTHREAD_CREATE_DETACHED) + { + (void) CloseHandle(this->thread); + } + func = this->call.routine; arg = this->call.arg; |