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

Changeset 2348

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

Fix for ticket #518.

Files:

Legend:

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

    r2346 r2348  
    10051005        else version( Posix ) 
    10061006        { 
    1007             int         thread = pthread_self(); 
    10081007            int         policy; 
    10091008            sched_param param; 
    1010  
    1011             int status = pthread_getschedparam( thread, &policy, &param ); 
     1009            pthread_t   self = pthread_self(); 
     1010 
     1011            int status = pthread_getschedparam( self, &policy, &param ); 
    10121012            assert( status == 0 ); 
    10131013