Changeset 54479 in vbox for trunk/src/VBox/Runtime/r0drv/solaris/thread-r0drv-solaris.c
- Timestamp:
- Feb 25, 2015 10:48:54 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/solaris/thread-r0drv-solaris.c
r44528 r54479 90 90 RTThreadPreemptDisable(&PreemptState); 91 91 92 char c ThreadPreempt = SOL_THREAD_PREEMPT;93 char c ForcePreempt = SOL_CPU_KPRUNRUN;92 char const bThreadPreempt = SOL_THREAD_PREEMPT; 93 char const bForcePreempt = SOL_CPU_KPRUNRUN; 94 94 bool fWillYield = false; 95 Assert( cThreadPreempt >= 1);95 Assert(bThreadPreempt >= 1); 96 96 97 97 /* … … 99 99 * preemption is set on the CPU, only then we are guaranteed to be preempted. 100 100 */ 101 if ( cThreadPreempt == 1 && cForcePreempt != 0)101 if (bThreadPreempt == 1 && bForcePreempt != 0) 102 102 fWillYield = true; 103 103 … … 136 136 Assert(hThread == NIL_RTTHREAD); 137 137 138 char c Preempt = SOL_CPU_RUNRUN;139 char c ForcePreempt = SOL_CPU_KPRUNRUN;140 return ( cPreempt != 0 || cForcePreempt != 0);138 char const bPreempt = SOL_CPU_RUNRUN; 139 char const bForcePreempt = SOL_CPU_KPRUNRUN; 140 return (bPreempt != 0 || bForcePreempt != 0); 141 141 } 142 142
Note:
See TracChangeset
for help on using the changeset viewer.