Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 2346

Show
Ignore:
Timestamp:
06/20/07 22:00:34 (1 year ago)
Author:
sean
Message:

Fix for issue #512.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/common/tango/core/Thread.d

    r2328 r2346  
    10051005        else version( Posix ) 
    10061006        { 
    1007             int policy = sched_getscheduler( getpid() ); 
    1008             assert( policy != -1 ); 
     1007            int         thread = pthread_self(); 
     1008            int         policy; 
     1009            sched_param param; 
     1010 
     1011            int status = pthread_getschedparam( thread, &policy, &param ); 
     1012            assert( status == 0 ); 
    10091013 
    10101014            PRIORITY_MIN = sched_get_priority_min( policy );