3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-09-17 15:11:30 +00:00

Add thread support code

Provides very simple ConcurrentQueue and ThreadPool classes that build even when threading is disabled.

Also provides a `DeferredLogs` class that captures log output to be replayed on the main thread
later.
This commit is contained in:
Robert O'Callahan 2025-09-06 04:20:14 +00:00
parent 012ddc2f1e
commit 9f0d5d1aca
7 changed files with 254 additions and 2 deletions

View file

@ -204,6 +204,7 @@ extern dict<std::string, LogExpectedItem> log_expect_log, log_expect_warning, lo
extern dict<std::string, LogExpectedItem> log_expect_prefix_log, log_expect_prefix_warning, log_expect_prefix_error;
void log_check_expected();
std::string signal_str(const RTLIL::SigSpec &sig, bool autoint = true);
const char *log_signal(const RTLIL::SigSpec &sig, bool autoint = true);
const char *log_const(const RTLIL::Const &value, bool autoint = true);
const char *log_id(const RTLIL::IdString &id);