VirtualBox

Ignore:
Timestamp:
Nov 28, 2011 3:01:21 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
75079
Message:

Introduced RTThreadSleepNoLog for spinlocking in the electric fence heap. (Caused trouble with all logging enabled.)

File:
1 edited

Legend:

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

    r29281 r39443  
    4848
    4949
    50 RTDECL(int) RTThreadSleep(RTMSINTERVAL cMillies)
     50static int rtR0ThreadSolSleepCommon(RTMSINTERVAL cMillies)
    5151{
    5252    clock_t cTicks;
     
    5555    if (!cMillies)
    5656    {
    57         RTThreadYield();
     57        vbi_yield();
    5858        return VINF_SUCCESS;
    5959    }
     
    6666    delay(cTicks);
    6767    return VINF_SUCCESS;
     68}
     69
     70
     71RTDECL(int) RTThreadSleep(RTMSINTERVAL cMillies)
     72{
     73    return rtR0ThreadSolSleepCommon(cMillies);
     74}
     75
     76
     77RTDECL(int) RTThreadSleepNoLog(RTMSINTERVAL cMillies)
     78{
     79    return rtR0ThreadSolSleepCommon(cMillies);
    6880}
    6981
Note: See TracChangeset for help on using the changeset viewer.

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