Public Types | |
typedef Callback< bool > | waiter_type |
typedef Callback< void, result< T > * > | callback_type |
Public Methods | |
result () | |
result (waiter_type waiter) | |
bool | ready () |
bool | success () |
T | wait () |
T | operator * () const |
T * | operator-> () const |
result< T > & | add (callback_type cb) |
result< T > & | remove (callback_type cb) |
void | set (const T &t) |
void | post () |
void | post (const T &t) |
Protected Methods | |
result (rep *r) | |
Friends | |
class | rep |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|