diff options
author | wtc%netscape.com <devnull@localhost> | 1998-12-09 16:37:26 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 1998-12-09 16:37:26 +0000 |
commit | 7fe2fa921cdd716afa2d5c54f7e8de94879f0993 (patch) | |
tree | 1873fd232abdcc7b08d6c023daa8de7af4b59dae /pr/src/md/os2 | |
parent | 44b2a1483226959769305464c0e11ee7a0851503 (diff) | |
download | nspr-hg-7fe2fa921cdd716afa2d5c54f7e8de94879f0993.tar.gz |
This checkin consists on three things:
1. File descriptor inheritance
2. Set thread->md.handle on Win32 for attached native threads.
3. Miscellaneous code cleanup.
Diffstat (limited to 'pr/src/md/os2')
-rw-r--r-- | pr/src/md/os2/os2thred.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pr/src/md/os2/os2thred.c b/pr/src/md/os2/os2thred.c index ecc25e57..41947c0d 100644 --- a/pr/src/md/os2/os2thred.c +++ b/pr/src/md/os2/os2thred.c @@ -60,8 +60,8 @@ _PR_MD_EARLY_INIT() #endif } -PR_IMPLEMENT(void) -_PR_MD_INIT_PRIMORDIAL_THREAD(PRThread *thread) +static void +_pr_SetThreadMDHandle(PRThread *thread) { PTIB ptib; PPIB ppib; @@ -76,8 +76,9 @@ _PR_MD_INIT_PRIMORDIAL_THREAD(PRThread *thread) PR_IMPLEMENT(PRStatus) _PR_MD_INIT_THREAD(PRThread *thread) { - if (thread->flags & _PR_PRIMORDIAL) - _PR_MD_INIT_PRIMORDIAL_THREAD(thread); + if (thread->flags & (_PR_PRIMORDIAL | _PR_ATTACHED)) { + _pr_SetThreadMDHandle(thread); + } /* Create the blocking IO semaphore */ _PR_MD_NEW_SEM(&thread->md.blocked_sema, 1); |