From 250e30d73f09e9da2b5a81d0fbae63744ae12a73 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 2 Apr 2019 08:47:15 +0800 Subject: *misc --- .../asura-lib-utils/threading/thread_impl_std.h | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 source/libs/asura-lib-utils/threading/thread_impl_std.h (limited to 'source/libs/asura-lib-utils/threading/thread_impl_std.h') diff --git a/source/libs/asura-lib-utils/threading/thread_impl_std.h b/source/libs/asura-lib-utils/threading/thread_impl_std.h new file mode 100644 index 0000000..0e7d3da --- /dev/null +++ b/source/libs/asura-lib-utils/threading/thread_impl_std.h @@ -0,0 +1,43 @@ +#ifndef __ASURA_THREAD_STD_H__ +#define __ASURA_THREAD_STD_H__ + +#include "../utils_config.h" + +#if ASURA_THREAD_STD + +#include + +#include "thread.h" + +namespace AsuraEngine +{ + namespace Threading + { + + /// + /// ThreadµÄstd::threadʵÏÖ¡£ + /// + class ThreadImplSTD : public ThreadImpl + { + public: + + ThreadImplSTD(); + ~ThreadImplSTD(); + + bool Start(Thread* thread, uint32 stacksize) override; + void Join() override; + void Kill() override; + + bool IsRunning() override; + bool IsCurrent() override; + + private: + + }; + + } +} + +#endif // #if ASURA_THREAD_STD + +#endif // __ASURA_THREAD_STD_H__ \ No newline at end of file -- cgit v1.1-26-g67d0