Class atlas::thread
#include <thread.hpp>
Public Functions
Type | Name |
---|---|
void | Join () |
bool | Joinable () |
void | dispatch (const T & p_function) |
void | dispatch (T && func, Args &&... args) |
thread (const std::string & p_tag) |
|
thread () = delete |
|
thread (const std::string & p_tag="Undefined") |
|
~thread () |
Detailed Description
Note:
Current work to get back to it.
Note:
The thought we are doing are the following
Note:
First implement thread.hpp
Note:
Implementing the thread class to wrap around the <thread> for handling and doing thread stuff like thread statuses, policies, etc
Note:
Second improve <thread_pool> to first be able to spawn those threads
Note:
Then once we can spawn those specific threads successfully then we apply what global update does and use a similar logic into the <thread_pool> itself
Note:
Third, fix up the FPS and timer for udpate frequency
Public Functions Documentation
function Join
inline void atlas::thread::Join ()
function Joinable
inline bool atlas::thread::Joinable ()
function dispatch [1/2]
template<typename T>
inline void atlas::thread::dispatch (
const T & p_function
)
function dispatch [2/2]
template<typename T, typename... Args>
inline void atlas::thread::dispatch (
T && func,
Args &&... args
)
function thread [1/3]
atlas::thread::thread (
const std::string & p_tag
)
function thread [2/3]
atlas::thread::thread () = delete
function thread [3/3]
inline atlas::thread::thread (
const std::string & p_tag="Undefined"
)
function ~thread
inline atlas::thread::~thread ()
The documentation for this class was generated from the following file TheAtlasEngine/atlas/core/threads/thread.hpp