Changeset 2328
- Timestamp:
- 06/19/07 12:10:39 (1 year ago)
- Files:
-
- trunk/lib/common/tango/core/Thread.d (modified) (1 diff)
- trunk/tango/stdc/posix/pthread.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/common/tango/core/Thread.d
r2298 r2328 712 712 else version( Posix ) 713 713 { 714 if( pthread_setschedprio( m_addr, val ) ) 714 // NOTE: pthread_setschedprio is not implemented on linux, so use 715 // the more complicated get/set sequence below. 716 //if( pthread_setschedprio( m_addr, val ) ) 717 // throw new ThreadException( "Unable to set thread priority" ); 718 719 int policy; 720 sched_param param; 721 722 if( pthread_getschedparam( m_addr, &policy, ¶m ) ) 723 throw new ThreadException( "Unable to set thread priority" ); 724 param.sched_priority = val; 725 if( pthread_setschedparam( m_addr, policy, ¶m ) ) 715 726 throw new ThreadException( "Unable to set thread priority" ); 716 727 } trunk/tango/stdc/posix/pthread.d
r2305 r2328 442 442 int pthread_getschedparam(pthread_t, int*, sched_param*); 443 443 int pthread_setschedparam(pthread_t, int, sched_param*); 444 int pthread_setschedprio(pthread_t, int);444 //int pthread_setschedprio(pthread_t, int); 445 445 } 446 446 else version( darwin ) … … 460 460 int pthread_getschedparam(pthread_t, int*, sched_param*); 461 461 int pthread_setschedparam(pthread_t, int, sched_param*); 462 int pthread_setschedprio(pthread_t, int);462 //int pthread_setschedprio(pthread_t, int); 463 463 } 464 464












