mirror of
https://github.com/verilator/verilator.git
synced 2026-09-03 16:28:53 +02:00
Commentary
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user