VirtualBox

Changeset 8645 in vbox for trunk/src/VBox/Runtime/generic


Ignore:
Timestamp:
May 7, 2008 11:01:00 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
30576
Message:

Added lock counts to the threads.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/critsect-generic.cpp

    r8245 r8645  
    4646 *          in order to get the RT thread structure there and this tree is
    4747 *          protected by a critsect atm.
     48 * @todo the L4 exclusion is no longer true, we've been using TLS for storing this for quite a while now.
    4849 */
    4950#if !defined(RTCRITSECT_STRICT) && defined(RT_STRICT) && !defined(RT_OS_L4)
     
    353354    pCritSect->Strict.uEnterId     = uId;
    354355    ASMAtomicXchgSize(&pCritSect->Strict.ThreadOwner, (RTUINTPTR)ThreadSelf); /* screw gcc and its pedantic warnings. */
     356    RTThreadWriteLockInc(ThreadSelf);
    355357#endif
    356358
     
    389391         */
    390392#ifdef RTCRITSECT_STRICT
     393        RTThreadWriteLockDec(pCritSect->Strict.ThreadOwner);
    391394        ASMAtomicXchgSize(&pCritSect->Strict.ThreadOwner, NIL_RTTHREAD);
    392395#endif
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