pr_cnotifyall.rst (970B)
1 PR_CNotifyAll 2 ============= 3 4 Notifies all the threads waiting for a change in the state of monitored 5 data. 6 7 8 Syntax 9 ------ 10 11 .. code:: 12 13 #include <prcmon.h> 14 15 PRStatus PR_CNotifyAll(void *address); 16 17 18 Parameter 19 ~~~~~~~~~ 20 21 The function has the following parameter: 22 23 ``address`` 24 The address of the monitored object. The calling thread must be in 25 the monitor at the time :ref:`PR_CNotifyAll` is called. 26 27 28 Returns 29 ~~~~~~~ 30 31 - :ref:`PR_SUCCESS` indicates that the referenced monitor was located and 32 the calling thread was in the monitor. 33 - :ref:`PR_FAILURE` indicates that the referenced monitor could not be 34 located or that the calling thread was not in the monitor 35 36 37 Description 38 ----------- 39 40 Using the value specified in the address parameter to find a monitor in 41 the monitor cache, :ref:`PR_CNotifyAll` notifies all threads waiting for 42 the monitor's state to change. All of the threads waiting on the state 43 change are then scheduled to reenter the monitor.