30 template <
class Function,
class... Args>
31 explicit FThread(Function&&
function, Args&&... args) noexcept;
35 template <class Function, class... Args>
36 void Start(Function&& function, Args&&... args) noexcept;
38 void Join() const noexcept;
39 void Detach() const noexcept;
40 void Abord() const noexcept;
42 std::thread::
id Id() const noexcept;
44 void operator=(
FThread&& thread) noexcept;
47 Boolean operator==(const
FThread& thread) const noexcept;
48 Boolean operator!=(const
FThread& thread) const noexcept;
50 void StartedHandle(
FSlot<
int>& slot);
51 void CompletedHandle(
FSlot<
int>& slot);
53 static
void Sleep(UInt duration);
55 inline const type_info& GetType()
override {
return typeid(
FThread); }
69 template <
class Function,
class... Args>
72 this->buffer =
new std::thread(
function, args...);
73 this->started.Send(SUCCESSFULL);
76 template<
class Function,
class ...Args>
79 this->buffer =
new std::thread(
function, args...);
80 this->started.Send(SUCCESSFULL);
FString GetName() const override
< Returns the name of object
Definition: FThread.h:56
FThread(const FThread &)=delete
Delete standard constructor.
void Start(Function &&function, Args &&... args) noexcept
< Start the thread with parameters
Definition: FThread.h:77
FThread() noexcept
Constructor of thread object.
Definition: FThread.cpp:6