|
CPN
Computational Process Networks
|
#include <Future.h>
Collaboration diagram for Sync::Future< T >:Public Member Functions | |
| Future () | |
| virtual | ~Future () |
| bool | Done () |
| void | Cancel () |
| void | Wait () |
| bool | IsCanceled () |
| virtual void | Set (const T &r) |
| virtual T | Get () |
Protected Member Functions | |
| void | InternalWait () |
| void | InternalSet (const T &r) |
Protected Attributes | |
| PthreadMutex | future_lock |
| PthreadCondition | future_cond |
| bool | done |
| bool | canceled |
| T | ret |
The basic idea with the future is an object which will provide a value at some time in the future.
|
inline |
|
inlinevirtual |
|
inline |
Definition at line 47 of file Future.h.
|
inline |
Definition at line 42 of file Future.h.
|
inlinevirtual |
Reimplemented in CPN::ConnectionServer::PendingConnection.
Definition at line 68 of file Future.h.
|
inlineprotected |
Definition at line 79 of file Future.h.
Referenced by Sync::Future< int >::Set(), and Sync::Future< void >::Set().
Here is the caller graph for this function:
|
inlineprotected |
Definition at line 75 of file Future.h.
Referenced by Sync::Future< int >::Get(), Sync::Future< void >::Get(), Sync::Future< int >::Wait(), and Sync::Future< void >::Wait().
Here is the caller graph for this function:
|
inline |
Definition at line 58 of file Future.h.
|
inlinevirtual |
Definition at line 63 of file Future.h.
|
inline |
Definition at line 53 of file Future.h.
|
protected |
Definition at line 88 of file Future.h.
Referenced by Sync::Future< int >::Cancel(), Sync::Future< void >::Cancel(), Sync::Future< int >::Done(), Sync::Future< void >::Done(), Sync::Future< int >::InternalWait(), Sync::Future< void >::InternalWait(), Sync::Future< int >::IsCanceled(), and Sync::Future< void >::IsCanceled().
|
protected |
Definition at line 87 of file Future.h.
Referenced by Sync::Future< int >::Done(), Sync::Future< void >::Done(), Sync::Future< int >::InternalSet(), Sync::Future< void >::InternalSet(), Sync::Future< int >::InternalWait(), and Sync::Future< void >::InternalWait().
|
protected |
Definition at line 86 of file Future.h.
Referenced by Sync::Future< int >::Cancel(), Sync::Future< void >::Cancel(), Sync::Future< int >::InternalSet(), Sync::Future< void >::InternalSet(), Sync::Future< int >::InternalWait(), and Sync::Future< void >::InternalWait().
|
protected |
Definition at line 85 of file Future.h.
Referenced by Sync::Future< int >::Cancel(), Sync::Future< void >::Cancel(), Sync::Future< int >::Done(), Sync::Future< void >::Done(), Sync::Future< int >::Get(), Sync::Future< void >::Get(), Sync::Future< int >::InternalWait(), Sync::Future< void >::InternalWait(), Sync::Future< int >::IsCanceled(), Sync::Future< void >::IsCanceled(), Sync::Future< int >::Set(), Sync::Future< void >::Set(), Sync::Future< int >::Wait(), and Sync::Future< void >::Wait().
|
protected |
Definition at line 89 of file Future.h.
Referenced by Sync::Future< int >::Get(), and Sync::Future< int >::InternalSet().
1.8.5