[threading] Add debug utilities

This commit is contained in:
Nick Terrell
2019-10-18 15:05:34 -07:00
parent 8e715d57c5
commit 243824551f
4 changed files with 86 additions and 6 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ static int testOrder(size_t numThreads, size_t queueSize)
POOL_ctx* const ctx = POOL_create(numThreads, queueSize);
ASSERT_TRUE(ctx);
data.i = 0;
(void)ZSTD_pthread_mutex_init(&data.mutex, NULL);
ASSERT_FALSE(ZSTD_pthread_mutex_init(&data.mutex, NULL));
{ size_t i;
for (i = 0; i < 16; ++i) {
POOL_add(ctx, &fn, &data);