summaryrefslogtreecommitdiff
path: root/gui/worker.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui/worker.h')
-rw-r--r--gui/worker.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/gui/worker.h b/gui/worker.h
index acfffcf..20a9838 100644
--- a/gui/worker.h
+++ b/gui/worker.h
@@ -12,6 +12,7 @@
#include <QDebug>
#include <QObject>
#include <QThread>
+#include <QMutex>
#include <deque>
class Worker : public QObject
@@ -28,7 +29,10 @@ class Worker : public QObject
EX *ex_stage;
MM *mm_stage;
WB *wb_stage;
- Controller *ct;
+
+ Controller *ct = nullptr;
+ QMutex ct_mutex;
+
/**
* The size each progressive cache level increases by.
*/
@@ -37,11 +41,9 @@ class Worker : public QObject
public:
explicit Worker(QObject *parent = nullptr);
~Worker();
+ QMutex& get_ct_mutex() { return ct_mutex; }
public slots:
- void refreshDram();
- void refreshCache();
- void refreshRegisters();
void runSteps(int steps);
void configure(
std::vector<unsigned int> ways,