FAST.Framework  1.0.0
Public Member Functions | Static Public Member Functions | List of all members
FThread Class Reference

#include <FThread.h>

Inheritance diagram for FThread:
Inheritance graph
[legend]
Collaboration diagram for FThread:
Collaboration graph
[legend]

Public Member Functions

 FThread (const FThread &)=delete
 Delete standard constructor.
 
template<class Function , class... Args>
 FThread (Function &&function, Args &&... args) noexcept
 < Constructor of thread object and started it
 
 FThread () noexcept
 Constructor of thread object.
 
virtual ~FThread ()
 Destroy thread object.
 
template<class Function , class... Args>
void Start (Function &&function, Args &&... args) noexcept
 < Start the thread with parameters
 
void Join () const noexcept
 Starts and waits for a thread to finish its execution.
 
void Detach () const noexcept
 Permits the thread to execute independently from the thread handle.
 
void Abord () const noexcept
 Terminate current thread.
 
std::thread::id Id () const noexcept
 Returns id of the thread.
 
void operator= (FThread &&thread) noexcept
 
Boolean operator== (const FThread &thread) const noexcept
 Returns TRUE if object and thread equels.
 
Boolean operator!= (const FThread &thread) const noexcept
 Returns TRUE if object and thread not equels.
 
void StartedHandle (FSlot< int > &slot)
 Handle for started signal.
 
void CompletedHandle (FSlot< int > &slot)
 Handle for completed signal.
 
FString GetName () const override
 < Returns the name of object
 
- Public Member Functions inherited from FObject
 FObject ()=default
 Constructor.
 
virtual ~FObject ()=default
 Destructor.
 
virtual const type_info & GetType ()=0
 Returns the type info over object.
 

Static Public Member Functions

static void Sleep (UInt duration)
 Sleep current thread a duration in milliseconds.
 

Detailed Description

The class thread represents a single thread of execution. Threads allow multiple functions to execute concurrently.

Member Function Documentation

◆ operator=()

void FThread::operator= ( FThread &&  thread)
noexcept

If the object is currently not joinable, it acquires the thread of execution represented by thread (if any). If it is joinable, terminate() is called


The documentation for this class was generated from the following files: