VCF::AsyncResult Class Reference
This class is used to manage invoking a delegate's callbacks asynchronously.
More...
#include <vcf/FoundationKit/Delegates.h>
Inheritance diagram for VCF::AsyncResult:
List of all members.
Detailed Description
This class is used to manage invoking a delegate's callbacks asynchronously.
You don't need to create an instance of it, instead the framework will hand you a new instance when you call beginInvoke on a delegate.
Member Typedef Documentation
Constructor & Destructor Documentation
| VCF::AsyncResult::AsyncResult |
( |
AsyncCallback * |
callback, |
|
|
bool |
runCallbacksAsync |
|
) |
[inline] |
|
| virtual VCF::AsyncResult::~AsyncResult |
( |
|
) |
[inline, virtual] |
|
Member Function Documentation
| void VCF::AsyncResult::doWork |
( |
|
) |
|
|
| virtual OSHandleID VCF::AsyncResult::getPeerHandleID |
( |
|
) |
[inline, virtual] |
|
| void VCF::AsyncResult::internal_addRunnable |
( |
AsyncReturns * |
returnObject, |
|
|
Runnable * |
internalRunnable |
|
) |
[inline] |
|
| void VCF::AsyncResult::internal_removeRunnable |
( |
Runnable * |
val |
) |
[inline, protected] |
|
| void VCF::AsyncResult::internal_run |
( |
|
) |
[inline] |
|
| bool VCF::AsyncResult::isCompleted |
( |
|
) |
const [inline] |
|
|
|
A flag that indicates whether or not the delegate's callbacks have finished executing.
- Returns:
- bool a result of true means the callbacks are done, otherwise it returns false.
|
| virtual WaitResult VCF::AsyncResult::wait |
( |
uint32 |
milliseconds |
) |
[inline, virtual] |
|
|
|
This function will attempt to wait till the async result is completed.
The result is "finished" when all the callbacks for the delegate that created it are done executing. This method will block for the passed in number of milliseconds or until all the callbacks are done whichever happens first.
Implements VCF::Waitable. |
| virtual WaitResult VCF::AsyncResult::wait |
( |
|
) |
[inline, virtual] |
|
|
|
This function will wait till the async result is completed.
The result is "finished" when all the callbacks for the delegate that created it are done executing. This method will block indefinitely until all the callbacks are done.
Implements VCF::Waitable. |
Friends And Related Function Documentation
friend class Task [friend] |
|
Member Data Documentation
The documentation for this class was generated from the following file: