added extended POOL test

abrupt end + downsizing with running jobs remaining in queue.

also : POOL_resize() requires numThreads >= 1
This commit is contained in:
Yann Collet
2018-06-21 14:58:59 -07:00
parent 7d80ada5ca
commit 818e72b4d5
3 changed files with 16 additions and 9 deletions
+1
View File
@@ -45,6 +45,7 @@ void POOL_free(POOL_ctx* ctx);
* note : new pool context might have same address as original one, but it's not guaranteed.
* consider starting context as consumed, only rely on returned one.
* note 2 : only numThreads can be resized, queueSize is unchanged.
* note 3 : `numThreads` must be at least 1
*/
POOL_ctx* POOL_resize(POOL_ctx* ctx, size_t numThreads);