r=wtc, a=asa OS/2 only - don't set priority if it is the default git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@118669 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user