mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-17 23:21: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:
parent
012ddc2f1e
commit
9f0d5d1aca
7 changed files with 254 additions and 2 deletions
|
@ -639,6 +639,13 @@ void log_dump_val_worker(RTLIL::State v) {
|
|||
log("%s", log_signal(v));
|
||||
}
|
||||
|
||||
std::string signal_str(const RTLIL::SigSpec &sig, bool autoint)
|
||||
{
|
||||
std::stringstream buf;
|
||||
RTLIL_BACKEND::dump_sigspec(buf, sig, autoint);
|
||||
return buf.str();
|
||||
}
|
||||
|
||||
const char *log_signal(const RTLIL::SigSpec &sig, bool autoint)
|
||||
{
|
||||
std::stringstream buf;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue