Skip to content

Commit

Permalink
adding asserts to help locate hard to reproduce issue (#3930)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey Mendelsohn authored and GitHub Enterprise committed Oct 5, 2022
1 parent 0b18b95 commit a5e9381
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions groups/bdl/bdlmt/bdlmt_multiprioritythreadpool.t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@ int main(int argc, char *argv[])
ASSERT(!pool.isSuspended());
checkOutPool(&pool);

pool.startThreads();
ASSERT(0 == pool.startThreads());

ASSERT(pool.isStarted());
ASSERT(!pool.isSuspended());
Expand Down Expand Up @@ -1680,7 +1680,7 @@ int main(int argc, char *argv[])
memset(resultsVec, 0, sizeof(resultsVec));
resultsVecIdx = 0;

pool->startThreads();
ASSERT(0 == pool->startThreads());

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

0 comments on commit a5e9381

Please sign in to comment.