We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 946dccf commit 29717f2Copy full SHA for 29717f2
examples/sysc/async_suspend/collector.h
@@ -54,6 +54,7 @@ class collector
54
55
void csvreport()
56
{
57
+ std::lock_guard<std::mutex> guard(lock);
58
cout << "event";
59
for (auto kv : names)
60
examples/sysc/async_suspend/node.h
@@ -36,6 +36,7 @@
36
#include <mutex>
37
#include <thread>
38
#include <condition_variable>
39
+#include <atomic>
40
41
#include "tlm.h"
42
#include "tlm_utils/simple_initiator_socket.h"
@@ -110,8 +111,8 @@ SC_MODULE (asynctestnode)
110
111
collector &col; // just used to print out the results
112
113
- bool running;
114
- bool finished;
+ std::atomic<bool> running;
115
+ std::atomic<bool> finished;
116
117
asynctestnode(sc_core::sc_module_name name, collector &c) :
118
init_socket("output"),
0 commit comments