diff options
author | wtc%netscape.com <devnull@localhost> | 2002-04-11 21:48:31 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2002-04-11 21:48:31 +0000 |
commit | be5aa67d7da68fae7ac754c2fe7c0393c0ce71b0 (patch) | |
tree | b44f34b7ff9af9478c4970b8a78e7a97c97ad0d7 | |
parent | 030f4cb9310cd33ea7f8716ab929a6fe932e6492 (diff) | |
download | nspr-hg-be5aa67d7da68fae7ac754c2fe7c0393c0ce71b0.tar.gz |
Bug 135450: OS/2 only - don't set priority if it is the default.
The patch is contributed by Michael Kaply <mkaply@us.ibm.com>. r=wtc.
Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
-rw-r--r-- | pr/src/md/os2/os2thred.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pr/src/md/os2/os2thred.c b/pr/src/md/os2/os2thred.c index d64ae0b9..f05be463 100644 --- a/pr/src/md/os2/os2thred.c +++ b/pr/src/md/os2/os2thred.c @@ -127,7 +127,15 @@ _PR_MD_CREATE_THREAD(PRThread *thread, if(thread->md.handle == -1) { return PR_FAILURE; } - _PR_MD_SET_PRIORITY(&(thread->md), priority); + + /* + * On OS/2, a thread is created with a thread priority of + * THREAD_PRIORITY_NORMAL + */ + + if (priority != PR_PRIORITY_NORMAL) { + _PR_MD_SET_PRIORITY(&(thread->md), priority); + } return PR_SUCCESS; } |