diff options
author | bje <bje> | 1998-07-24 05:20:10 +0000 |
---|---|---|
committer | bje <bje> | 1998-07-24 05:20:10 +0000 |
commit | d0870a69bfaea4e1c57b2fced2477b0546bb7006 (patch) | |
tree | 7e4881be30089a0db9e4fc43f940e229d8d56d43 /sync.c | |
parent | d466c3dd4146d6277bf4006a597897227893a368 (diff) |
1998-07-24 Ben Elliston <bje@cygnus.com>
* sync.c (pthread_detach): Close the Win32 thread handle to
emulate detached (or daemon) threads.
Diffstat (limited to 'sync.c')
-rw-r--r-- | sync.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -84,7 +84,11 @@ pthread_detach(pthread_t thread) { return EINVAL; } - - /* FIXME: As far as I can determine we just no-op. */ + + this->attr.detached = PTHREAD_CREATE_DETACHED; + if (CloseHandle(thread) != TRUE) + { + return ESRCH; + } return 0; } |