SpiecsEngine
 
Loading...
Searching...
No Matches
MainTaskQuerier.cpp
Go to the documentation of this file.
1/**
2* @file MainTaskQuerier.cpp.
3* @brief The MainTaskQuerier & NativeScriptRegister Class Implementation.
4* @author Spices.
5*/
6
7#include "Pchheader.h"
9#include "Core/Thread/ThreadModel.h"
10
11namespace Spices {
12
14 {
16
17 auto& taskQueue = ThreadModel::Get()->GetMainTaskQueue();
18
19 while (!taskQueue.IsEmpty())
20 {
21 auto task = taskQueue.Pop();
22 task();
23 }
24 }
25}
#define SPICES_PROFILE_ZONE
virtual void OnTick(TimeStep &ts) override
This interface defines the behave on specific component tick every frame.
Script of handle world mark.
This Class handles our engine time step during frames. Global Unique.
Definition TimeStep.h:22