6 #ifndef _INCLUDE_UTILS_ABSTRACTC20THREAD_H_
7 #define _INCLUDE_UTILS_ABSTRACTC20THREAD_H_
39 std::shared_ptr<std::thread> threadPtr;
42 ~AbstractC20Thread() {}
50 threadPtr = std::make_shared<std::thread>(fun);
72 #define newAbstractC20Thread make_shared<INTELLI::AbstractC20Thread>
73 typedef std::shared_ptr<std::barrier<>> BarrierPtr;
The base class and abstraction of C++20 thread, and it can be derived into other threads.
Definition: AbstractC20Thread.hpp:29
virtual void inlineMain()
The inline 'main" function of thread, as an interface.
Definition: AbstractC20Thread.hpp:35
void startThread()
to start this thread
Definition: AbstractC20Thread.hpp:46
void joinThread()
the thread join function
Definition: AbstractC20Thread.hpp:56
std::shared_ptr< AbstractC20Thread > AbstractC20ThreadPtr
The class to describe a shared pointer to AbstractC20Thread.
Definition: AbstractC20Thread.hpp:66