VirtualBox

Changeset 8658 in vbox for trunk/src


Ignore:
Timestamp:
May 7, 2008 2:27:19 PM (17 years ago)
Author:
vboxsync
Message:

Invalidate the thread structure *after* removing it from the tree or we'll end up in an assertion that may lead to an indefinite recursion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/thread.cpp

    r8645 r8658  
    525525{
    526526    /*
    527      * Mark it dead and remove it from the tree.
    528      */
     527     * Remove it from the tree and mark it as dead.
     528     */
     529    rtThreadRemove(pThread);
    529530    ASMAtomicXchgU32(&pThread->u32Magic, RTTHREADINT_MAGIC_DEAD);
    530     rtThreadRemove(pThread);
    531531
    532532    /*
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