diff options
author | mozilla%weilbacher.org <devnull@localhost> | 2007-08-04 09:47:13 +0000 |
---|---|---|
committer | mozilla%weilbacher.org <devnull@localhost> | 2007-08-04 09:47:13 +0000 |
commit | da140dd1cb55133a15bc173b31dc96aec7d1a01c (patch) | |
tree | a2abbbd8b30c6f512f3565d7bb4a09efeac3a8df | |
parent | fdfd2836fac677836af7e9c8e1ab9b4edfc2c0c1 (diff) | |
download | nspr-hg-da140dd1cb55133a15bc173b31dc96aec7d1a01c.tar.gz |
[OS/2] Bug 346376: Don't use PRTYC_IDLETIME class for thread priorities, r=mkaply, sr=wtc
-rw-r--r-- | pr/src/md/os2/os2thred.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pr/src/md/os2/os2thred.c b/pr/src/md/os2/os2thred.c index 69f06aa0..48aab74b 100644 --- a/pr/src/md/os2/os2thred.c +++ b/pr/src/md/os2/os2thred.c @@ -261,7 +261,7 @@ _PR_MD_YIELD(void) void _PR_MD_SET_PRIORITY(_MDThread *thread, PRThreadPriority newPri) { - int nativePri; + int nativePri = PRTYC_NOCHANGE; BOOL rv; if (newPri < PR_PRIORITY_FIRST) { @@ -271,8 +271,6 @@ _PR_MD_SET_PRIORITY(_MDThread *thread, PRThreadPriority newPri) } switch (newPri) { case PR_PRIORITY_LOW: - nativePri = PRTYC_IDLETIME; - break; case PR_PRIORITY_NORMAL: nativePri = PRTYC_REGULAR; break; @@ -285,7 +283,7 @@ _PR_MD_SET_PRIORITY(_MDThread *thread, PRThreadPriority newPri) rv = DosSetPriority(PRTYS_THREAD, nativePri, 0, thread->handle); PR_ASSERT(rv == NO_ERROR); if (rv != NO_ERROR) { - PR_LOG(_pr_thread_lm, PR_LOG_MIN, + PR_LOG(_pr_thread_lm, PR_LOG_MIN, ("PR_SetThreadPriority: can't set thread priority\n")); } return; |