VirtualBox

Changeset 25373 in vbox for trunk/include/iprt/semaphore.h


Ignore:
Timestamp:
Dec 14, 2009 7:20:27 PM (15 years ago)
Author:
vboxsync
Message:

IPRT,PDMCritSect: More validation changes. Validate posix and linux mutexes. Always update the thread state with critsects.

File:
1 edited

Legend:

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

    r25168 r25373  
    236236 */
    237237RTDECL(int)  RTSemMutexRequestNoResume(RTSEMMUTEX MutexSem, unsigned cMillies);
     238
     239/**
     240 * Debug version of RTSemMutexRequest that tracks the location.
     241 *
     242 * @returns iprt status code.
     243 *          Will not return VERR_INTERRUPTED.
     244 * @param   MutexSem            The mutex semaphore to request ownership over.
     245 * @param   cMillies            The number of milliseconds to wait.
     246 * @param   uId
     247 * @param   uId                 Some kind of locking location ID.  Typically a
     248 *                              return address up the stack.  Optional (0).
     249 * @param   pszFile             The file where the lock is being acquired from.
     250 *                              Optional.
     251 * @param   iLine               The line number in that file.  Optional (0).
     252 * @param   pszFunction         The functionn where the lock is being acquired
     253 *                              from.  Optional.
     254 */
     255RTDECL(int)  RTSemMutexRequestDebug(RTSEMMUTEX MutexSem, unsigned cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL);
     256
     257/**
     258 * Debug version of RTSemMutexRequestNoResume that tracks the location.
     259 *
     260 * @returns iprt status code.
     261 *          Will not return VERR_INTERRUPTED.
     262 * @param   MutexSem            The mutex semaphore to request ownership over.
     263 * @param   cMillies            The number of milliseconds to wait.
     264 * @param   uId
     265 * @param   uId                 Some kind of locking location ID.  Typically a
     266 *                              return address up the stack.  Optional (0).
     267 * @param   pszFile             The file where the lock is being acquired from.
     268 *                              Optional.
     269 * @param   iLine               The line number in that file.  Optional (0).
     270 * @param   pszFunction         The functionn where the lock is being acquired
     271 *                              from.  Optional.
     272 */
     273RTDECL(int)  RTSemMutexRequestNoResumeDebug(RTSEMMUTEX MutexSem, unsigned cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL);
    238274
    239275/**
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