VirtualBox

Ignore:
Timestamp:
Nov 8, 2023 3:04:09 PM (18 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160079
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/tests/TestThreads.cpp

    r101895 r101982  
    4444#include "nsIServiceManager.h"
    4545
     46#include <iprt/thread.h>
     47
    4648class nsRunner : public nsIRunnable {
    4749public:
     
    5961        // if we don't do something slow, we'll never see the other
    6062        // worker threads run
    61         PR_Sleep(PR_MillisecondsToInterval(100));
     63        RTThreadSleep(100);
    6264
    6365        return rv;
     
    126128    }
    127129
    128     PR_Sleep(PR_MillisecondsToInterval(100));       // hopefully the runner will quit here
     130    RTThreadSleep(100);       // hopefully the runner will quit here
    129131
    130132    return NS_OK;
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