Commentary

This commit is contained in:
Wilson Snyder
2023-05-05 22:50:28 -04:00
parent 8a3cb8daa8
commit 4ae80f9a9f
3 changed files with 4 additions and 0 deletions
+2
View File
@@ -183,8 +183,10 @@ void V3ThreadPool::selfTest() {
futures.push_back(s().enqueue<void>(std::bind(thirdJob, 100)));
futures.push_back(s().enqueue<void>(std::bind(thirdJob, 100)));
V3ThreadPool::waitForFutures(futures);
s().waitIfStopRequested();
s().requestExclusiveAccess(std::bind(firstJob, 100));
auto forthJob = [&]() -> int { return 1234; };
std::list<std::future<int>> futuresInt;
futuresInt.push_back(s().enqueue<int>(forthJob));