PR_SetThreadPriority should set the priority unconditionally.
authorsrinivas%netscape.com
Fri, 22 Oct 1999 21:01:51 +0000
changeset 905 50b4535adee8cb607736597f33e2d1da38d0ff27
parent 904 8104e904f4e2abcaffbd6be2a78c602c3052a5f9
child 906 760c11b4f7c29791760397e247cac80f4fe0ffb6
push idunknown
push userunknown
push dateunknown
PR_SetThreadPriority should set the priority unconditionally.
pr/src/pthreads/ptthread.c
--- a/pr/src/pthreads/ptthread.c
+++ b/pr/src/pthreads/ptthread.c
@@ -622,18 +622,17 @@ PR_IMPLEMENT(void) PR_SetThreadPriority(
 					("PR_SetThreadPriority: no thread scheduling privilege"));
 			}
 		}
 		if (rv != 0)
 			rv = -1;
     }
 #endif
 
-	if (rv != -1)
-    	thred->priority = newPri;
+    thred->priority = newPri;
 }  /* PR_SetThreadPriority */
 
 #if 0
 PR_IMPLEMENT(PRStatus) PR_NewThreadPrivateIndex(
     PRUintn *newIndex, PRThreadPrivateDTOR destructor)
 {
     int rv;