Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/thread/shared future"

From cppreference.com
< cpp‎ | thread
(formatting)
(Member functions: formatting)
Line 28: Line 28:
 
{{dcl list mem fun | cpp/thread/shared_future/valid | checks if the result is available}}
 
{{dcl list mem fun | cpp/thread/shared_future/valid | checks if the result is available}}
 
{{dcl list mem fun | cpp/thread/shared_future/wait | waits for the result to become available}}
 
{{dcl list mem fun | cpp/thread/shared_future/wait | waits for the result to become available}}
{{dcl list mem fun | cpp/thread/shared_future/wait_for | waits for the result, returns if it is not
+
{{dcl list mem fun | cpp/thread/shared_future/wait_for | waits for the result, returns if it is not<br>available for the specified timeout duration}}
available for the specified timeout duration}}
+
{{dcl list mem fun | cpp/thread/shared_future/wait_until | waits for the result, returns if it is not<br>available until specified time point has been reached}}
{{dcl list mem fun | cpp/thread/shared_future/wait_until | waits for the result, returns if it is not
+
available until specified time point has been reached}}
+
 
{{dcl list end}}
 
{{dcl list end}}

Revision as of 15:58, 18 August 2011

Template:cpp/thread/shared future/sidebar Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <future>
</td>

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

<td >
template< class T > class shared_future;
</td>

<td > (1) </td> <td > Template:mark c++11 feature </td> </tr> <tr class="t-dcl ">

<td >
template< class T > class shared_future<T&>;
</td>

<td > (2) </td> <td > Template:mark c++11 feature </td> </tr> <tr class="t-dcl ">

<td >
template<>          class shared_future<void>;
</td>

<td > (3) </td> <td > Template:mark c++11 feature </td> </tr> Template:ddcl list end

Member functions

constructs the future object
(public member function)
destructs the future object
(public member function)
assigns the contents
(public member function)
Getting the result
returns the result
(public member function)
State
checks if the result is available
(public member function)
waits for the result to become available
(public member function)
waits for the result, returns if it is not
available for the specified timeout duration
(public member function)
waits for the result, returns if it is not
available until specified time point has been reached
(public member function)