Skip to content

Commit a5e9381

Browse files
Jeffrey MendelsohnGitHub Enterprise
authored andcommitted
adding asserts to help locate hard to reproduce issue (#3930)
1 parent 0b18b95 commit a5e9381

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

groups/bdl/bdlmt/bdlmt_multiprioritythreadpool.t.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,7 @@ int main(int argc, char *argv[])
15111511
ASSERT(!pool.isSuspended());
15121512
checkOutPool(&pool);
15131513

1514-
pool.startThreads();
1514+
ASSERT(0 == pool.startThreads());
15151515

15161516
ASSERT(pool.isStarted());
15171517
ASSERT(!pool.isSuspended());
@@ -1680,7 +1680,7 @@ int main(int argc, char *argv[])
16801680
memset(resultsVec, 0, sizeof(resultsVec));
16811681
resultsVecIdx = 0;
16821682

1683-
pool->startThreads();
1683+
ASSERT(0 == pool->startThreads());
16841684

16851685
for (long i = 0; 10 > i; ++i) {
16861686
int sts = pool->enqueueJob(&pushInt,

0 commit comments

Comments
 (0)