summaryrefslogtreecommitdiff
path: root/pr/src/md/os2
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2002-04-11 18:31:09 +0000
committerwtc%netscape.com <devnull@localhost>2002-04-11 18:31:09 +0000
commit58483a15420bab8d19cadf7ef2b51ad2cf45824d (patch)
tree3917ed97d8bed9d30cc7ac8f71ab45ad909dd1cc /pr/src/md/os2
parent58754e01c9b901e1eb02ad5a1d6c74640bde040f (diff)
downloadnspr-hg-58483a15420bab8d19cadf7ef2b51ad2cf45824d.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.
Diffstat (limited to 'pr/src/md/os2')
-rw-r--r--pr/src/md/os2/os2thred.c10
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;
}