Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/docs/nspr/reference/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 802 B image not shown  

Quelle  pr_notifyallcondvar.rst   Sprache: unbekannt

 
Spracherkennung für: .rst vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

PR_NotifyAllCondVar
===================

Notifies all of the threads waiting on a specified condition variable.


Syntax
------

.. code::

   #include <prcvar.h>

   PRStatus PR_NotifyAllCondVar(PRCondVar *cvar);


Returns
~~~~~~~

The function returns one of the following values:

-  If successful, ``PR_SUCCESS``.
-  If unsuccessful (for example, if the caller has not locked the lock
   associated with the condition variable), ``PR_FAILURE``.


Description
-----------

The calling thread must hold the lock that protects the condition, as
well as the invariants that are tightly bound to the condition.

A call to :ref:`PR_NotifyAllCondVar` causes all of the threads waiting on
the specified condition variable to be promoted to a ready state. If no
threads are waiting, the operation is no-op.

[ Dauer der Verarbeitung: 0.35 Sekunden  ]