aboutsummaryrefslogtreecommitdiff
path: root/lib/executor.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/executor.h')
-rw-r--r--lib/executor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/executor.h b/lib/executor.h
index 5d2e5b6..67493d4 100644
--- a/lib/executor.h
+++ b/lib/executor.h
@@ -4,8 +4,8 @@
#include "thread.h"
+#include <forward_list>
#include <memory>
-#include <vector>
namespace nMatcha {
struct Executor {
@@ -20,7 +20,7 @@ namespace nMatcha {
private:
void* mStackPtr;
- std::vector<std::unique_ptr<Thread>> mThreads;
+ std::forward_list<std::unique_ptr<Thread>> mThreads;
void yield_to(const Thread* t) const;
};