Defines a Future
for which to set the value, under the condition that a value has been set for the Future
.
More...
#include "nn/nlib/threading/Future.h"
|
static errno_t | All (FutureType *f, Future< R1 > *f1, Future< R2 > *f2, Future< R3 > *f3, Future< R4 > *f4, Future< R5 > *f5) |
| When an error has been set to all Future f1, f2, f3, f4, and f5, sets a value to f . More...
|
|
static errno_t | Any (FutureType *f, Future< R1 > *f1, Future< R2 > *f2, Future< R3 > *f3, Future< R4 > *f4, Future< R5 > *f5) |
| When an error has been set to any of Future f1, f2, f3, f4, and f5, a value is set in f . More...
|
|
template<class R1 = None, class R2 = None, class R3 = None, class R4 = None, class R5 = None>
class nn::nlib::threading::WhenFutureComplete< R1, R2, R3, R4, R5 >
Defines a Future
for which to set the value, under the condition that a value has been set for the Future
.
- Template Parameters
-
- Description
- Use
WhenFutureComplete::All
when setting Future
when a value has been set for all instances of Future
. Use WhenFutureComplete::Any
when setting Future
when a value has been set for any Future
.
- This class template provides specialized classes enabling the use of
WhenFutureComplete<R1,R2>
, WhenFutureComplete<R1,R2,R3>
, WhenFutureComplete<R1,R2,R3,R4>
, and WhenFutureComplete<R1,R2,R3,R4,R5>
.
Definition at line 1776 of file Future.h.
template<class R1 = None, class R2 = None, class R3 = None, class R4 = None, class R5 = None>
When an error has been set to all Future
f1, f2, f3, f4, and f5, sets a value to f
.
- Parameters
-
- Return values
-
0 | Success. |
EINVAL | Indicates that one of f1, f2, f3, f4, or f5 is NULL . |
ENOMEM | Failed to allocate memory. |
Another | error may be returned from a lower layer. |
Definition at line 1780 of file Future.h.
template<class R1 = None, class R2 = None, class R3 = None, class R4 = None, class R5 = None>
When an error has been set to any of Future
f1, f2, f3, f4, and f5, a value is set in f
.
- Parameters
-
- Return values
-
0 | Success. |
EINVAL | Indicates that one of f1, f2, f3, f4, or f5 is NULL . |
ENOMEM | Failed to allocate memory. |
Another | error may be returned from a lower layer. |
Definition at line 1784 of file Future.h.
The documentation for this class was generated from the following files: