VirtualBox

Changeset 102213 in vbox for trunk/src/libs


Ignore:
Timestamp:
Nov 21, 2023 2:29:32 PM (16 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160338
Message:

libs/xpcom: As PR_Interrupt() is not existing anymore it issafe to drop the PRThread::waiting member and remove ode setting it, bugref:10545

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

Legend:

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

    r102209 r102213  
    258258    pthread_t id;                   /* pthread identifier for the thread */
    259259    PRBool okToDelete;              /* ok to delete the PRThread struct? */
    260     PRCondVar *waiting;             /* where the thread is waiting | NULL */
    261260    void *sp;                       /* recorded sp for garbage collection */
    262261    PRThread *next, *prev;          /* simple linked list of all threads */
  • trunk/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptsynch.c

    r102209 r102213  
    322322{
    323323    PRIntn rv;
    324     PRThread *thred = PR_GetCurrentThread();
    325324
    326325    Assert(cvar != NULL);
     
    330329    /* and it better be by us */
    331330    Assert(pthread_equal(cvar->lock->owner, pthread_self()));
    332 
    333     if (_PT_THREAD_INTERRUPTED(thred)) goto aborted;
    334 
    335     /*
    336      * The thread waiting is used for PR_Interrupt
    337      */
    338     thred->waiting = cvar;  /* this is where we're waiting */
    339331
    340332    /*
     
    365357
    366358    Assert(0 == cvar->lock->notified.length);
    367     thred->waiting = NULL;  /* and now we're not */
    368     if (_PT_THREAD_INTERRUPTED(thred)) goto aborted;
    369359    if (rv != 0)
    370360    {
     
    372362    }
    373363    return PR_SUCCESS;
    374 
    375 aborted:
    376     thred->state &= ~PT_THREAD_ABORTED;
    377     return PR_FAILURE;
    378364}  /* PR_WaitCondVar */
    379365
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