mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-11 08:40:44 +00:00
fix thread scheduling test (provided by Sebastian Reitenbach <buzzdee>)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35276 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6b5a2c4c03
commit
e47d619b47
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2012-07-09 Sebastian Reitenbach <buzzdee>
|
||||
|
||||
* Source/NSThread.m: Fixes test for posix thread scheduling.
|
||||
|
||||
2012-07-09 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSBundle.m: Fixes for bug #34815 ... map between old and
|
||||
|
|
|
@ -578,7 +578,7 @@ unregisterActiveThread(NSThread *thread)
|
|||
*/
|
||||
+ (void) setThreadPriority: (double)pri
|
||||
{
|
||||
#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING
|
||||
#if defined(_POSIX_THREAD_PRIORITY_SCHEDULING) && (_POSIX_THREAD_PRIORITY_SCHEDULING > 0)
|
||||
int policy;
|
||||
struct sched_param param;
|
||||
|
||||
|
@ -616,7 +616,7 @@ unregisterActiveThread(NSThread *thread)
|
|||
+ (double) threadPriority
|
||||
{
|
||||
double pri = 0;
|
||||
#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING
|
||||
#if defined(_POSIX_THREAD_PRIORITY_SCHEDULING) && (_POSIX_THREAD_PRIORITY_SCHEDULING > 0)
|
||||
int policy;
|
||||
struct sched_param param;
|
||||
|
||||
|
|
Loading…
Reference in a new issue