VirtualBox

Changeset 25640 in vbox for trunk/include


Ignore:
Timestamp:
Jan 4, 2010 4:44:23 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56342
Message:

iprt: Added RTSemEventMulti[Set|Add|Remove]Signaller.

File:
1 edited

Legend:

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

    r25638 r25640  
    143143 * @param   hThread             A previously added thread.
    144144 */
    145 RTDECL(void) RTSemEventRemoverSignaller(RTSEMEVENT hEventSem, RTTHREAD hThread);
     145RTDECL(void) RTSemEventRemoveSignaller(RTSEMEVENT hEventSem, RTTHREAD hThread);
    146146
    147147/** @} */
     
    211211 */
    212212RTDECL(int)  RTSemEventMultiWaitNoResume(RTSEMEVENTMULTI EventMultiSem, unsigned cMillies);
     213
     214/**
     215 * Sets the signaller thread to one specific thread.
     216 *
     217 * This is only used for validating usage and deadlock detection.  When used
     218 * after calls to RTSemEventAddSignaller, the specified thread will be the only
     219 * signalling thread.
     220 *
     221 * @param   hEventMultiSem      The multiple release event semaphore.
     222 * @param   hThread             The thread that will signal it.  Pass
     223 *                              NIL_RTTHREAD to indicate that there is no
     224 *                              special signalling thread.
     225 */
     226RTDECL(void) RTSemEventMultiSetSignaller(RTSEMEVENTMULTI hEventMultiSem, RTTHREAD hThread);
     227
     228/**
     229 * To add more signalling threads.
     230 *
     231 * First call RTSemEventSetSignaller then add further threads with this.
     232 *
     233 * @param   hEventMultiSem      The multiple release event semaphore.
     234 * @param   hThread             The thread that will signal it. NIL_RTTHREAD is
     235 *                              not accepted.
     236 */
     237RTDECL(void) RTSemEventMultiAddSignaller(RTSEMEVENTMULTI hEventMultiSem, RTTHREAD hThread);
     238
     239/**
     240 * To remove a signalling thread.
     241 *
     242 * Reverts work done by RTSemEventAddSignaller and RTSemEventSetSignaller.
     243 *
     244 * @param   hEventMultiSem      The multiple release event semaphore.
     245 * @param   hThread             A previously added thread.
     246 */
     247RTDECL(void) RTSemEventMultiRemoveSignaller(RTSEMEVENTMULTI hEventMultiSem, RTTHREAD hThread);
    213248
    214249/** @} */
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