VirtualBox

Ignore:
Timestamp:
May 5, 2009 5:26:18 PM (16 years ago)
Author:
vboxsync
Message:

IPRT: Explained RTMpOthers preemption req to the caller in mp.h, but play safe. Comment in RTMpOnSpecific isn't relevant.

File:
1 edited

Legend:

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

    r15907 r19391  
    204204    RTMPARGS Args;
    205205
     206    /* The caller is supposed to have disabled preemption, but take no chances. */
     207    vbi_preempt_disable();
     208
    206209    Args.pfnWorker = pfnWorker;
    207210    Args.pvUser1 = pvUser1;
    208211    Args.pvUser2 = pvUser2;
    209     Args.idCpu = RTMpCpuId(); /** @todo should disable pre-emption before doing this.... */
     212    Args.idCpu = RTMpCpuId();
    210213    Args.cHits = 0;
    211 
    212     /* HERE JOE - this looks broken, explain to Knut */
    213     vbi_preempt_disable();
    214214
    215215    vbi_execute_on_others(rtmpOnOthersSolarisWrapper, &Args);
     
    259259    Args.cHits = 0;
    260260
    261     /* TBD HERE JOE again.. perhaps broken */
    262261    vbi_preempt_disable();
    263262
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