VirtualBox

Ignore:
Timestamp:
Nov 8, 2023 3:04:09 PM (15 months ago)
Author:
vboxsync
Message:

libs/xpcom: Convert PR_Sleep to RTThreadSleep/RTThreadYield, bugref:10545

Location:
trunk/src/libs/xpcom18a4/ipc/ipcd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/ipc/ipcd/daemon/src/ipcdUnix.cpp

    r101933 r101982  
    6767#include "ipcdPrivate.h"
    6868#include "ipcd.h"
    69 
    70 #if 0
    71 static void
    72 IPC_Sleep(int seconds)
    73 {
    74     while (seconds > 0) {
    75         LOG(("\rsleeping for %d seconds...", seconds));
    76         PR_Sleep(PR_SecondsToInterval(1));
    77         --seconds;
    78     }
    79     LOG(("\ndone sleeping\n"));
    80 }
    81 #endif
    8269
    8370//-----------------------------------------------------------------------------
  • trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp

    r101966 r101982  
    35493549
    35503550  // Yield the cpu so a worker can get a chance to start working without too much fuss.
    3551   PR_Sleep(PR_INTERVAL_NO_WAIT);
     3551  RTThreadYield();
    35523552  mon.Enter();
    35533553  // examine the queue
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