|
Zen API
|
| 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.
| pool | Thread pool object. |
| transaction | Transaction handle emitted by kThreadPool_BeginExecute. |
| timeout | Timeout in microseconds, or kINFINITE to wait indefinitely. |
| status | Upon success, optionally receives the transaction result (can be kNULL). |