VirtualBox

Changeset 25618 in vbox for trunk/include


Ignore:
Timestamp:
Jan 2, 2010 12:00:33 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56309
Message:

IPRT,pdmcritsect: More lock validator hacking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/lockvalidator.h

    r25617 r25618  
    434434
    435435/**
    436  * Do deadlock detection before blocking on exclusive access to a lock.
    437  *
    438  * @retval  VINF_SUCCESS
     436 * Do deadlock detection before blocking on exclusive access to a lock and
     437 * change the thread state.
     438 *
     439 * @retval  VINF_SUCCESS - thread is in the specified sleep state.
    439440 * @retval  VERR_SEM_LV_DEADLOCK if blocking would deadlock.  Gone thru the
    440441 *          motions.
     
    450451 * @param   pSrcPos             The source position of the lock operation.
    451452 * @param   fRecursiveOk        Whether it's ok to recurse.
     453 * @param   enmSleepState       The sleep state to enter on successful return.
    452454 */
    453455RTDECL(int) RTLockValidatorRecExclCheckBlocking(PRTLOCKVALRECEXCL pRec, RTTHREAD hThreadSelf,
    454                                                 PCRTLOCKVALSRCPOS pSrcPos, bool fRecursiveOk);
     456                                                PCRTLOCKVALSRCPOS pSrcPos, bool fRecursiveOk,
     457                                                RTTHREADSTATE enmSleepState);
    455458
    456459/**
     
    463466 * @param   pSrcPos             The source position of the lock operation.
    464467 * @param   fRecursiveOk        Whether it's ok to recurse.
     468 * @param   enmSleepState       The sleep state to enter on successful return.
    465469 */
    466470RTDECL(int) RTLockValidatorRecExclCheckOrderAndBlocking(PRTLOCKVALRECEXCL pRec, RTTHREAD hThreadSelf,
    467                                                         PCRTLOCKVALSRCPOS pSrcPos, bool fRecursiveOk);
     471                                                        PCRTLOCKVALSRCPOS pSrcPos, bool fRecursiveOk,
     472                                                        RTTHREADSTATE enmSleepState);
    468473
    469474/**
     
    509514
    510515/**
    511  * Do deadlock detection before blocking on shared access to a lock.
    512  *
    513  * @retval  VINF_SUCCESS
     516 * Do deadlock detection before blocking on shared access to a lock and change
     517 * the thread state.
     518 *
     519 * @retval  VINF_SUCCESS - thread is in the specified sleep state.
    514520 * @retval  VERR_SEM_LV_DEADLOCK if blocking would deadlock.  Gone thru the
    515521 *          motions.
     
    525531 * @param   pSrcPos             The source position of the lock operation.
    526532 * @param   fRecursiveOk        Whether it's ok to recurse.
     533 * @param   enmSleepState       The sleep state to enter on successful return.
    527534 */
    528535RTDECL(int) RTLockValidatorRecSharedCheckBlocking(PRTLOCKVALRECSHRD pRec, RTTHREAD hThreadSelf,
    529                                                   PCRTLOCKVALSRCPOS pSrcPos, bool fRecursiveOk);
     536                                                  PCRTLOCKVALSRCPOS pSrcPos, bool fRecursiveOk,
     537                                                  RTTHREADSTATE enmSleepState);
    530538
    531539/**
     
    540548 */
    541549RTDECL(int) RTLockValidatorRecSharedCheckOrderAndBlocking(PRTLOCKVALRECSHRD pRec, RTTHREAD hThreadSelf,
    542                                                           PCRTLOCKVALSRCPOS pSrcPos, bool fRecursiveOk);
     550                                                          PCRTLOCKVALSRCPOS pSrcPos, bool fRecursiveOk,
     551                                                          RTTHREADSTATE enmSleepState);
    543552
    544553/**
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