Changeset 54471 in vbox
- Timestamp:
- Feb 24, 2015 9:37:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/solaris/mp-r0drv-solaris.c
r54469 r54471 223 223 { 224 224 RTMPARGS Args; 225 RTSOLCPUSET CpuSet; 226 RTTHREADPREEMPTSTATE PreemptState = RTTHREADPREEMPTSTATE_INITIALIZER; 225 227 RT_ASSERT_INTS_ON(); 226 228 … … 231 233 Args.cHits = 0; 232 234 233 RTSOLCPUSET CpuSet;234 235 for (int i = 0; i < IPRT_SOL_SET_WORDS; i++) 235 236 CpuSet.auCpus[i] = (ulong_t)-1L; 236 237 237 RTTHREADPREEMPTSTATE PreemptState = RTTHREADPREEMPTSTATE_INITIALIZER;238 238 RTThreadPreemptDisable(&PreemptState); 239 239 … … 272 272 { 273 273 RTMPARGS Args; 274 RTSOLCPUSET CpuSet; 275 RTTHREADPREEMPTSTATE PreemptState = RTTHREADPREEMPTSTATE_INITIALIZER; 274 276 RT_ASSERT_INTS_ON(); 275 277 … … 281 283 282 284 /* The caller is supposed to have disabled preemption, but take no chances. */ 283 RTTHREADPREEMPTSTATE PreemptState = RTTHREADPREEMPTSTATE_INITIALIZER;284 285 RTThreadPreemptDisable(&PreemptState); 285 286 286 RTSOLCPUSET CpuSet;287 287 for (int i = 0; i < IPRT_SOL_SET_WORDS; i++) 288 288 CpuSet.auCpus[0] = (ulong_t)-1L; … … 326 326 int rc; 327 327 RTMPARGS Args; 328 RTSOLCPUSET CpuSet; 328 329 RTTHREADPREEMPTSTATE PreemptState = RTTHREADPREEMPTSTATE_INITIALIZER; 329 330 … … 338 339 Args.cHits = 0; 339 340 340 RTSOLCPUSET CpuSet;341 341 for (int i = 0; i < IPRT_SOL_SET_WORDS; i++) 342 342 CpuSet.auCpus[i] = 0; … … 410 410 { 411 411 RTMPARGS Args; 412 RTSOLCPUSET CpuSet; 413 RTTHREADPREEMPTSTATE PreemptState = RTTHREADPREEMPTSTATE_INITIALIZER; 412 414 RT_ASSERT_INTS_ON(); 413 415 … … 424 426 Args.cHits = 0; 425 427 426 RTSOLCPUSET CpuSet;427 428 for (int i = 0; i < IPRT_SOL_SET_WORDS; i++) 428 429 CpuSet.auCpus[i] = 0; 429 430 BT_SET(CpuSet.auCpus, idCpu); 430 431 431 RTTHREADPREEMPTSTATE PreemptState = RTTHREADPREEMPTSTATE_INITIALIZER;432 432 RTThreadPreemptDisable(&PreemptState); 433 433
Note:
See TracChangeset
for help on using the changeset viewer.