VirtualBox

Changeset 19922 in vbox for trunk/src/VBox/Runtime/r0drv


Ignore:
Timestamp:
May 22, 2009 5:47:37 PM (16 years ago)
Author:
vboxsync
Message:

iprt/semaphore-r0drv-darwin.cpp: Fixed interruptable waits, they didn't respond to signals previously.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/darwin/semaphore-r0drv-darwin.cpp

    r8245 r19922  
    289289RTDECL(int)  RTSemEventWait(RTSEMEVENT EventSem, unsigned cMillies)
    290290{
    291     return rtSemEventWait(EventSem, cMillies, FALSE /* not interruptable */);
     291    return rtSemEventWait(EventSem, cMillies, THREAD_UNINT);
    292292}
    293293
     
    295295RTDECL(int)  RTSemEventWaitNoResume(RTSEMEVENT EventSem, unsigned cMillies)
    296296{
    297     return rtSemEventWait(EventSem, cMillies, TRUE /* interruptable */);
     297    return rtSemEventWait(EventSem, cMillies, THREAD_ABORTSAFE);
    298298}
    299299
     
    484484RTDECL(int)  RTSemEventMultiWait(RTSEMEVENTMULTI EventMultiSem, unsigned cMillies)
    485485{
    486     return rtSemEventMultiWait(EventMultiSem, cMillies, FALSE /* not interruptable */);
     486    return rtSemEventMultiWait(EventMultiSem, cMillies, THREAD_UNINT);
    487487}
    488488
     
    490490RTDECL(int)  RTSemEventMultiWaitNoResume(RTSEMEVENTMULTI EventMultiSem, unsigned cMillies)
    491491{
    492     return rtSemEventMultiWait(EventMultiSem, cMillies, TRUE /* interruptable */);
     492    return rtSemEventMultiWait(EventMultiSem, cMillies, THREAD_ABORTSAFE);
    493493}
    494494
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