IAPI::ClearPendingTasks

property ClearPendingTasks.

Cancels pending tasks from a thread pool. For each task client code is notified by onAbort() function

 

HRESULT ClearPendingTasks(
  long hTaskQueueObject,
  long *pVal
);

Parameters

hTaskQueueObject

[in] .   Handle of the thread pool

pVal

[out, retval] The returned value 0 (success) or -1 (failure)

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI