Changeset 101982 in vbox for trunk/src/libs/xpcom18a4
- Timestamp:
- Nov 8, 2023 3:04:09 PM (15 months ago)
- Location:
- trunk/src/libs/xpcom18a4
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/ipc/ipcd/daemon/src/ipcdUnix.cpp
r101933 r101982 67 67 #include "ipcdPrivate.h" 68 68 #include "ipcd.h" 69 70 #if 071 static void72 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 #endif82 69 83 70 //----------------------------------------------------------------------------- -
trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp
r101966 r101982 3549 3549 3550 3550 // 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(); 3552 3552 mon.Enter(); 3553 3553 // examine the queue -
trunk/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptio.c
r101964 r101982 78 78 #endif 79 79 #endif 80 81 #include <iprt/thread.h> 80 82 81 83 #ifdef DARWIN … … 2136 2138 if (pt_TestAbort()) return -1; 2137 2139 2138 if (0 == npds) PR_Sleep(timeout);2140 if (0 == npds) RTThreadSleep(PR_IntervalToMilliseconds(timeout)); 2139 2141 else 2140 2142 { -
trunk/src/libs/xpcom18a4/xpcom/tests/TestThreads.cpp
r101895 r101982 44 44 #include "nsIServiceManager.h" 45 45 46 #include <iprt/thread.h> 47 46 48 class nsRunner : public nsIRunnable { 47 49 public: … … 59 61 // if we don't do something slow, we'll never see the other 60 62 // worker threads run 61 PR_Sleep(PR_MillisecondsToInterval(100));63 RTThreadSleep(100); 62 64 63 65 return rv; … … 126 128 } 127 129 128 PR_Sleep(PR_MillisecondsToInterval(100)); // hopefully the runner will quit here130 RTThreadSleep(100); // hopefully the runner will quit here 129 131 130 132 return NS_OK; -
trunk/src/libs/xpcom18a4/xpcom/threads/nsThread.cpp
r101960 r101982 300 300 if (PR_GetCurrentThread() != mThread) 301 301 return NS_ERROR_FAILURE; 302 303 if ( PR_Sleep(PR_MillisecondsToInterval(msec)) != PR_SUCCESS)302 303 if (RTThreadSleep(msec) != VINF_SUCCESS) 304 304 return NS_ERROR_FAILURE; 305 305
Note:
See TracChangeset
for help on using the changeset viewer.