Changeset 7966 in vbox for trunk/src/VBox/Runtime/r0drv
- Timestamp:
- Apr 15, 2008 6:07:42 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/solaris/thread2-r0drv-solaris.c
r5999 r7966 50 50 int rtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType) 51 51 { 52 int iPriority; 52 int iPriority; 53 53 switch (enmType) 54 54 { 55 case RTTHREADTYPE_INFREQUENT_POLLER: iPriority = 1;break;56 case RTTHREADTYPE_EMULATION: iPriority = 25; break;57 case RTTHREADTYPE_DEFAULT: iPriority = 53; break;58 case RTTHREADTYPE_MSG_PUMP: iPriority = 7 5; break;59 case RTTHREADTYPE_IO: iPriority = 100;break;60 case RTTHREADTYPE_TIMER: iPriority = 127;break;55 case RTTHREADTYPE_INFREQUENT_POLLER: iPriority = 60; break; 56 case RTTHREADTYPE_EMULATION: iPriority = 66; break; 57 case RTTHREADTYPE_DEFAULT: iPriority = 72; break; 58 case RTTHREADTYPE_MSG_PUMP: iPriority = 78; break; 59 case RTTHREADTYPE_IO: iPriority = 84; break; 60 case RTTHREADTYPE_TIMER: iPriority = 99; break; 61 61 default: 62 62 AssertMsgFailed(("enmType=%d\n", enmType)); … … 64 64 } 65 65 66 pri_t threadPrio = iPriority; 67 curthread->t_pri = threadPrio; 66 thread_lock(curthread); 67 THREAD_CHANGE_PRI(curthread, iPriority); 68 thread_unlock(curthread); 68 69 return VINF_SUCCESS; 69 70 }
Note:
See TracChangeset
for help on using the changeset viewer.