aboutsummaryrefslogtreecommitdiff
path: root/lib/executor.cc
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2020-10-05 23:03:03 +0200
committerjohannst <johannes.stoelp@gmail.com>2020-10-05 23:03:03 +0200
commit2c4330e7c01cf404406dd3380e64304460b29b02 (patch)
tree588bbbd660e16c45d3578fea988b9566cf9b3387 /lib/executor.cc
parentabba364fb3b8871a2baac7779b0850b3bdc479b0 (diff)
downloadmatcha-threads-2c4330e7c01cf404406dd3380e64304460b29b02.tar.gz
matcha-threads-2c4330e7c01cf404406dd3380e64304460b29b02.zip
added doc on thread & executor
Diffstat (limited to 'lib/executor.cc')
-rw-r--r--lib/executor.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/executor.cc b/lib/executor.cc
index 3d3c044..774354f 100644
--- a/lib/executor.cc
+++ b/lib/executor.cc
@@ -5,6 +5,10 @@
#include "arch.h"
namespace nMatcha {
+ const void* Executor::getStackPtr() const {
+ return mStackPtr;
+ }
+
void Executor::spawn(std::unique_ptr<Thread> t) {
mThreads.push_front(std::move(t));
mThreads.front()->mExecutor = this;