VirtualBox

Changeset 54471 in vbox


Ignore:
Timestamp:
Feb 24, 2015 9:37:07 PM (10 years ago)
Author:
vboxsync
Message:

mp-r0drv-solaris: C-style decl.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/solaris/mp-r0drv-solaris.c

    r54469 r54471  
    223223{
    224224    RTMPARGS Args;
     225    RTSOLCPUSET CpuSet;
     226    RTTHREADPREEMPTSTATE PreemptState = RTTHREADPREEMPTSTATE_INITIALIZER;
    225227    RT_ASSERT_INTS_ON();
    226228
     
    231233    Args.cHits = 0;
    232234
    233     RTSOLCPUSET CpuSet;
    234235    for (int i = 0; i < IPRT_SOL_SET_WORDS; i++)
    235236        CpuSet.auCpus[i] = (ulong_t)-1L;
    236237
    237     RTTHREADPREEMPTSTATE PreemptState = RTTHREADPREEMPTSTATE_INITIALIZER;
    238238    RTThreadPreemptDisable(&PreemptState);
    239239
     
    272272{
    273273    RTMPARGS Args;
     274    RTSOLCPUSET CpuSet;
     275    RTTHREADPREEMPTSTATE PreemptState = RTTHREADPREEMPTSTATE_INITIALIZER;
    274276    RT_ASSERT_INTS_ON();
    275277
     
    281283
    282284    /* The caller is supposed to have disabled preemption, but take no chances. */
    283     RTTHREADPREEMPTSTATE PreemptState = RTTHREADPREEMPTSTATE_INITIALIZER;
    284285    RTThreadPreemptDisable(&PreemptState);
    285286
    286     RTSOLCPUSET CpuSet;
    287287    for (int i = 0; i < IPRT_SOL_SET_WORDS; i++)
    288288        CpuSet.auCpus[0] = (ulong_t)-1L;
     
    326326    int rc;
    327327    RTMPARGS Args;
     328    RTSOLCPUSET CpuSet;
    328329    RTTHREADPREEMPTSTATE PreemptState = RTTHREADPREEMPTSTATE_INITIALIZER;
    329330
     
    338339    Args.cHits     = 0;
    339340
    340     RTSOLCPUSET CpuSet;
    341341    for (int i = 0; i < IPRT_SOL_SET_WORDS; i++)
    342342        CpuSet.auCpus[i] = 0;
     
    410410{
    411411    RTMPARGS Args;
     412    RTSOLCPUSET CpuSet;
     413    RTTHREADPREEMPTSTATE PreemptState = RTTHREADPREEMPTSTATE_INITIALIZER;
    412414    RT_ASSERT_INTS_ON();
    413415
     
    424426    Args.cHits = 0;
    425427
    426     RTSOLCPUSET CpuSet;
    427428    for (int i = 0; i < IPRT_SOL_SET_WORDS; i++)
    428429        CpuSet.auCpus[i] = 0;
    429430    BT_SET(CpuSet.auCpus, idCpu);
    430431
    431     RTTHREADPREEMPTSTATE PreemptState = RTTHREADPREEMPTSTATE_INITIALIZER;
    432432    RTThreadPreemptDisable(&PreemptState);
    433433
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette