From 4ae80f9a9fda292e1c0bd15c260f379496895f50 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Fri, 5 May 2023 22:50:28 -0400 Subject: [PATCH] Commentary --- src/V3Partition.cpp | 1 + src/V3ThreadPool.cpp | 2 ++ src/Verilator.cpp | 1 + 3 files changed, 4 insertions(+) diff --git a/src/V3Partition.cpp b/src/V3Partition.cpp index ed8b67a3a..41b41ba51 100644 --- a/src/V3Partition.cpp +++ b/src/V3Partition.cpp @@ -3227,6 +3227,7 @@ void V3Partition::finalize(AstNetlist* netlistp) { } void V3Partition::selfTest() { + UINFO(2, __FUNCTION__ << ": " << endl); PartPropagateCpSelfTest::selfTest(); PartPackMTasks::selfTest(); PartContraction::selfTest(); diff --git a/src/V3ThreadPool.cpp b/src/V3ThreadPool.cpp index 47750a093..71ca0772e 100644 --- a/src/V3ThreadPool.cpp +++ b/src/V3ThreadPool.cpp @@ -183,8 +183,10 @@ void V3ThreadPool::selfTest() { futures.push_back(s().enqueue(std::bind(thirdJob, 100))); futures.push_back(s().enqueue(std::bind(thirdJob, 100))); V3ThreadPool::waitForFutures(futures); + s().waitIfStopRequested(); s().requestExclusiveAccess(std::bind(firstJob, 100)); + auto forthJob = [&]() -> int { return 1234; }; std::list> futuresInt; futuresInt.push_back(s().enqueue(forthJob)); diff --git a/src/Verilator.cpp b/src/Verilator.cpp index 6737b8f40..9aeb177e1 100644 --- a/src/Verilator.cpp +++ b/src/Verilator.cpp @@ -624,6 +624,7 @@ static void verilate(const string& argString) { V3Partition::selfTestNormalizeCosts(); V3Broken::selfTest(); V3ThreadPool::selfTest(); + UINFO(2, "selfTest done\n"); } // Read first filename