VirtualBox

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


Ignore:
Timestamp:
Feb 7, 2007 3:34:35 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
18409
Message:

Stricter check in RTCritSectEnter for destroyed critical sections.

File:
1 edited

Legend:

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

    r1 r751  
    288288#endif
    289289
     290    /** If the critical section has already been destroyed, then inform the caller. */
     291    if (pCritSect->u32Magic != RTCRITSECT_MAGIC)
     292        return VERR_SEM_DESTROYED;
     293
    290294    /*
    291295     * Increment the waiter counter.
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