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.
This commit is contained in:
wtc%netscape.com 2002-04-11 18:31:09 +00:00
Родитель 532f2dc700
Коммит e96ea0c3d8
1 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -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;
}