VirtualBox

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


Ignore:
Timestamp:
Jan 2, 2010 12:13:19 AM (15 years ago)
Author:
vboxsync
Message:

iprt/semrw-*: Added RTSemRWGetReadCount. Adjusted writer fairness a little bit in semrw-generic.cpp.

File:
1 edited

Legend:

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

    r25467 r25616  
    594594 */
    595595RTDECL(uint32_t) RTSemRWGetWriterReadRecursion(RTSEMRW RWSem);
     596
     597/**
     598 * Gets the current number of reads.
     599 *
     600 * This includes all read recursions, so it might be higher than the number of
     601 * read owners.  It does not include reads done by the current writer.
     602 *
     603 * @returns The read count (0 if bad semaphore handle).
     604 * @param   RWSem       The Read/Write semaphore in question.
     605 */
     606RTDECL(uint32_t) RTSemRWGetReadCount(RTSEMRW RWSem);
    596607
    597608/** @} */
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