Namespaces
Variants
Views
Actions

std::cv_status

From cppreference.com
< cpp‎ | thread
Revision as of 21:09, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <condition_variable>
</td>

<td></td> <td></td> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
enum class cv_status;
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

The scoped enumeration std::cv_status describes whether a timed wait returned because of timeout or not.

std::cv_status is used by the wait_for and wait_until methods of std::condition_variable and std::condition_variable_any.

Member constants

Constant Explanation
no_timeout the condition variable was awakened with notify_all, notify_one, or spuriously
timeout the condition variable was awakened by timeout expiration

See also

Template:cpp/thread/condition variable/dcl list wait forTemplate:cpp/thread/condition variable/dcl list wait forTemplate:cpp/thread/condition variable/dcl list wait untilTemplate:cpp/thread/condition variable/dcl list wait until