2#include <LockFreeQueue.h>
6class JobHandler :
public std::enable_shared_from_this<JobHandler>
12 auto job =
new Job(std::move(callback));
16 template<
typename T,
typename Ret,
typename... Args>
19 std::shared_ptr<T> owner = std::static_pointer_cast<T>(shared_from_this());
20 auto job =
new Job(owner, method, std::forward<Args>(args)...);
unsigned __int32 uint32
Definition CommTypes.h:10
std::function< void()> CallbackType
Definition Job.h:8
Definition JobHandler.h:7
LockFreeQueue< JobRef > m_AllocatedJobs
Definition JobHandler.h:30
void HandleJob_Async(CallbackType &&callback)
Definition JobHandler.h:11
Job * JobRef
Definition JobHandler.h:8
void HandleJob_Async(Ret(T::*method)(Args...), Args... args)
Definition JobHandler.h:17
uint32 m_AtomicJobCnt
Definition JobHandler.h:29
void executablePush(JobRef job)
Definition JobHandler.cpp:3