VirtualBox

Changeset 8653 in vbox for trunk/include/iprt


Ignore:
Timestamp:
May 7, 2008 12:31:30 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
30584
Message:

Added RTSemRWIsWriteOwner, RTSemRWGetWriteRecursion and RTSemRWGetWriterReadRecursion.

File:
1 edited

Legend:

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

    r8245 r8653  
    338338 */
    339339RTDECL(int)   RTSemRWReleaseWrite(RTSEMRW RWSem);
     340
     341/**
     342 * Checks if the caller is the exclusive semaphore owner.
     343 *
     344 * @returns true / false accoringly.
     345 * @param   RWSem       The Read/Write semaphore in question.
     346 */
     347RTDECL(bool)  RTSemRWIsWriteOwner(RTSEMRW RWSem);
     348
     349/**
     350 * Gets the write recursion count.
     351 *
     352 * @returns The write recursion count (0 if bad semaphore handle).
     353 * @param   RWSem       The Read/Write semaphore in question.
     354 */
     355RTDECL(uint32_t) RTSemRWGetWriteRecursion(RTSEMRW RWSem);
     356
     357/**
     358 * Gets the read recursion count of the current writer.
     359 *
     360 * @returns The read recursion count (0 if bad semaphore handle).
     361 * @param   RWSem       The Read/Write semaphore in question.
     362 */
     363RTDECL(uint32_t) RTSemRWGetWriterReadRecursion(RTSEMRW RWSem);
    340364
    341365
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