VirtualBox

Changeset 103531 in vbox


Ignore:
Timestamp:
Feb 22, 2024 1:13:56 PM (9 months ago)
Author:
vboxsync
Message:

libs/xpcom: Small cleanups, bugref:3409

Location:
trunk/src/libs/xpcom18a4/nsprpub/pr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/nsprpub/pr/include/prmon.h

    r102470 r103531  
    126126** mutex. Returns zero if the current thread has not entered the mutex.
    127127*/
    128 NSPR_API(PRIntn) PR_GetMonitorEntryCount(PRMonitor *mon);
     128NSPR_API(uint32_t) PR_GetMonitorEntryCount(PRMonitor *mon);
    129129
    130130NSPR_API(PRMonitor*) PR_NewNamedMonitor(const char* name);
  • trunk/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptsynch.c

    r103472 r103531  
    366366}  /* PR_DestroyCondVar */
    367367
    368 PR_IMPLEMENT(PRStatus) PR_WaitCondVar(PRCondVar *cvar, RTMSINTERVAL msTimeout)
     368static PRStatus PR_WaitCondVar(PRCondVar *cvar, RTMSINTERVAL msTimeout)
    369369{
    370370    PRIntn rv;
     
    477477 * duplicating it for now - XXXMB
    478478 */
    479 PR_IMPLEMENT(PRIntn) PR_GetMonitorEntryCount(PRMonitor *mon)
     479PR_IMPLEMENT(uint32_t) PR_GetMonitorEntryCount(PRMonitor *mon)
    480480{
    481481    pthread_t self = pthread_self();
     
    533533{
    534534    PRStatus rv;
    535     PRInt16 saved_entries;
    536535    pthread_t saved_owner;
    537536
     
    545544
    546545    /* tuck these away 'till later */
    547     saved_entries = mon->entryCount;
     546    uint32_t saved_entries = mon->entryCount;
    548547    mon->entryCount = 0;
    549548    _PT_PTHREAD_COPY_THR_HANDLE(mon->owner, saved_owner);
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