diff options
author | johannst <johannes.stoelp@gmail.com> | 2020-10-05 23:03:03 +0200 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2020-10-05 23:03:03 +0200 |
commit | 2c4330e7c01cf404406dd3380e64304460b29b02 (patch) | |
tree | 588bbbd660e16c45d3578fea988b9566cf9b3387 /lib/executor.cc | |
parent | abba364fb3b8871a2baac7779b0850b3bdc479b0 (diff) | |
download | matcha-threads-2c4330e7c01cf404406dd3380e64304460b29b02.tar.gz matcha-threads-2c4330e7c01cf404406dd3380e64304460b29b02.zip |
added doc on thread & executor
Diffstat (limited to 'lib/executor.cc')
-rw-r--r-- | lib/executor.cc | 4 |
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; |