Conditionally compile pthread priority call;

checkin for Jeremy Lea <reg@shale.csir.co.za>.
This commit is contained in:
srinivas%netscape.com 1998-11-18 22:58:55 +00:00
Родитель a6275d222b
Коммит 3d132b87fb
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -358,8 +358,10 @@ static PRThread* _PR_CreateThread(
PR_LOG(_pr_thread_lm, PR_LOG_MIN,
("_PR_CreateThread: no thread scheduling privilege"));
/* Try creating the thread again without setting priority. */
#if defined(_POSIX_THREAD_PRIORITY_SCHEDULING)
rv = pthread_attr_setinheritsched(&tattr, PTHREAD_INHERIT_SCHED);
PR_ASSERT(0 == rv);
#endif
rv = PTHREAD_CREATE(&id, tattr, _pt_root, thred);
}
#endif