diff options
Diffstat (limited to 'lib/thread.h')
-rw-r--r-- | lib/thread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/thread.h b/lib/thread.h index e392052..d983734 100644 --- a/lib/thread.h +++ b/lib/thread.h @@ -13,12 +13,15 @@ namespace nMatcha { virtual void threadFn() = 0; + bool isFinished() const { return mFinished; } + protected: void yield(); private: static void entry(void* obj); void* mStackPtr; + bool mFinished; friend struct Executor; const Executor* mExecutor; |