Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kThreadPool_EndExecute ( kThreadPool  pool,
kThreadPoolTransaction  transaction,
k64u  timeout,
kStatus status 
)

Blocks until execution of a thread pool transaction is complete.

If a finite timeout is specified, this function may return kERROR_TIMEOUT. In this case, it is the caller's responsibility to call kThreadPool_EndExecute repeatedly until the transaction is completed.

This method is thread-safe.

Parameters
poolThread pool object.
transactionTransaction handle emitted by kThreadPool_BeginExecute.
timeoutTimeout in microseconds, or kINFINITE to wait indefinitely.
statusUpon success, optionally receives the transaction result (can be kNULL).
Returns
Operation status.