VirtualBox

Ignore:
Timestamp:
Nov 30, 2023 8:12:27 AM (17 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160526
Message:

libs/xpcom: Convert the PR_Waitfunction to take the timeout in milliseconds and get rid of PR_Interval* and use RTTime*, bugref:10545

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/threads/nsAutoLock.h

    r101925 r102390  
    257257     * @see prmon.h
    258258     **/     
    259     nsresult Wait(PRIntervalTime interval = PR_INTERVAL_NO_TIMEOUT) {
    260         return PR_Wait(mMonitor, interval) == PR_SUCCESS
     259    nsresult Wait(RTMSINTERVAL msTimeout = RT_INDEFINITE_WAIT) {
     260        return PR_Wait(mMonitor, msTimeout) == PR_SUCCESS
    261261            ? NS_OK : NS_ERROR_FAILURE;
    262262    }
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