From 5af26dc6733920673119e308659d88b59994d581 Mon Sep 17 00:00:00 2001 From: "mozilla%weilbacher.org" Date: Thu, 5 Oct 2006 12:31:54 +0000 Subject: [PATCH] [OS/2] Bug 346376: Don't use PRTYC_IDLETIME class for thread priorities, r=mkaply, sr=wtchang --- nsprpub/pr/src/md/os2/os2thred.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/nsprpub/pr/src/md/os2/os2thred.c b/nsprpub/pr/src/md/os2/os2thred.c index 5bda4cbebf9..48aab74b094 100644 --- a/nsprpub/pr/src/md/os2/os2thred.c +++ b/nsprpub/pr/src/md/os2/os2thred.c @@ -262,7 +262,6 @@ void _PR_MD_SET_PRIORITY(_MDThread *thread, PRThreadPriority newPri) { int nativePri = PRTYC_NOCHANGE; - int delta = 0; BOOL rv; if (newPri < PR_PRIORITY_FIRST) { @@ -272,10 +271,6 @@ _PR_MD_SET_PRIORITY(_MDThread *thread, PRThreadPriority newPri) } switch (newPri) { case PR_PRIORITY_LOW: - /* instead of PRTYC_IDLETIME use PRTYC_REGULAR with low delta */ - nativePri = PRTYC_REGULAR; - delta = -25; - break; case PR_PRIORITY_NORMAL: nativePri = PRTYC_REGULAR; break; @@ -285,7 +280,7 @@ _PR_MD_SET_PRIORITY(_MDThread *thread, PRThreadPriority newPri) case PR_PRIORITY_URGENT: nativePri = PRTYC_TIMECRITICAL; } - rv = DosSetPriority(PRTYS_THREAD, nativePri, delta, thread->handle); + 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,