mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Bugzilla bug #4176: _POSIX_THREAD_PRIORITY_SCHEDULING is the feature-test
macro for pthread_attr_setscope. Thanks to jon@eyrie.org (Jonathan Lennox) for the patch.
This commit is contained in:
parent
24c6ea43be
commit
0c38b8b82d
@ -314,10 +314,7 @@ static PRThread* _PR_CreateThread(
|
||||
scope = PR_GLOBAL_THREAD;
|
||||
|
||||
if (PR_GLOBAL_BOUND_THREAD == scope) {
|
||||
/*
|
||||
* should a Posix feature test be used here?
|
||||
*/
|
||||
#ifdef PTHREAD_SCOPE_SYSTEM
|
||||
#if defined(_POSIX_THREAD_PRIORITY_SCHEDULING)
|
||||
rv = pthread_attr_setscope(&tattr, PTHREAD_SCOPE_SYSTEM);
|
||||
if (rv) {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user