A thread-pool scheduler that supports scheduling one-off functions as well as dependency graphs.
More...
A thread-pool scheduler that supports scheduling one-off functions as well as dependency graphs.
|
virtual ErrCode INTERFACE_FUNC | scheduleFunction (IFunction *function, IAwaitable **awaitable)=0 |
| Schedules the specified work function to run on the thread-pool. The call does not block but immediately returns an awaitable that represents the asynchronous execution. It can be waited upon and queried for status and result. More...
|
|
virtual ErrCode INTERFACE_FUNC | scheduleWork (IWork *work)=0 |
| Schedules the specified work callback to run on the thread-pool. The call does not block. More...
|
|
virtual ErrCode INTERFACE_FUNC | scheduleGraph (ITaskGraph *graph, IAwaitable **awaitable)=0 |
| Schedules the specified dependency graph to run on the thread-pool. The call does not block but immediately returns an awaitable that represents the asynchronous execution. It can be waited upon and queried for status and result. Any exceptions that occur during the graph execution are silently ignored. More...
|
|
virtual ErrCode INTERFACE_FUNC | stop ()=0 |
| Cancels all outstanding work and waits for the remaining to complete. After this point the scheduler does not allow any new work or graphs for scheduling.
|
|
virtual ErrCode INTERFACE_FUNC | waitAll ()=0 |
| Waits fo all current scheduled work and tasks to complete.
|
|
virtual ErrCode INTERFACE_FUNC | isMultiThreaded (Bool *multiThreaded)=0 |
| Returns whether more than one worker thread is used. More...
|
|
virtual ErrCode INTERFACE_FUNC | borrowInterface (const IntfID &intfID, void **obj) const =0 |
| Returns another interface which is supported by the object without incrementing the reference count. More...
|
|
virtual ErrCode INTERFACE_FUNC | dispose ()=0 |
| Disposes all references held by the object. More...
|
|
virtual ErrCode INTERFACE_FUNC | getHashCode (SizeT *hashCode)=0 |
| Returns hash code of the object. More...
|
|
virtual ErrCode INTERFACE_FUNC | equals (IBaseObject *other, Bool *equal) const =0 |
| Compares object to another object for equality. More...
|
|
virtual ErrCode INTERFACE_FUNC | toString (CharPtr *str)=0 |
| Returns a string representation of the object. More...
|
|
virtual ErrCode INTERFACE_FUNC | queryInterface (const IntfID &intfID, void **obj)=0 |
| Returns another interface which is supported by the object and increments the reference count. More...
|
|
virtual int INTERFACE_FUNC | addRef ()=0 |
| Increments the reference count for an interface on an object. More...
|
|
virtual int INTERFACE_FUNC | releaseRef ()=0 |
| Decrements the reference count for an interface on an object. More...
|
|