6 #ifndef _INCLUDE_UTILS_ABSTRACTC20THREAD_H_
7 #define _INCLUDE_UTILS_ABSTRACTC20THREAD_H_
38 std::shared_ptr<std::thread> threadPtr;
41 ~AbstractC20Thread() {}
49 threadPtr = std::make_shared<std::thread>(fun);
The base class and abstraction of C++20 thread, and it can be derived into other threads.
Definition: AbstractC20Thread.h:28
virtual void inlineMain()
The inline 'main" function of thread, as an interface.
Definition: AbstractC20Thread.h:34
void startThread()
to start this thread
Definition: AbstractC20Thread.h:45
void joinThread()
the thread join function
Definition: AbstractC20Thread.h:55
Definition: DatasetTool.h:10