Prepare CD Callback handler
This commit is contained in:
@@ -4,6 +4,11 @@
|
||||
namespace JabyEngine {
|
||||
namespace Callback {
|
||||
namespace internal {
|
||||
static void execute_thread(SysCall::ThreadHandle thread_handle) {
|
||||
MainThread::prepare_if_main(thread_handle);
|
||||
Thread::execute_next();
|
||||
}
|
||||
|
||||
namespace VSync {
|
||||
static constexpr size_t StackSize = 64;
|
||||
|
||||
@@ -11,22 +16,19 @@ namespace JabyEngine {
|
||||
extern uint32_t stack[StackSize];
|
||||
void routine();
|
||||
|
||||
static void execute() {
|
||||
MainThread::prepare_if_main(VSync::thread_handle);
|
||||
Thread::execute_next();
|
||||
static void [[deprecated("Currently not in use")]] execute() {
|
||||
execute_thread(VSync::thread_handle);
|
||||
}
|
||||
}
|
||||
|
||||
namespace DataReady {
|
||||
namespace CD {
|
||||
static constexpr size_t StackSize = 256;
|
||||
|
||||
extern SysCall::ThreadHandle thread_handle;
|
||||
extern uint32_t stack[StackSize];
|
||||
void routine();
|
||||
|
||||
static void execute() {
|
||||
MainThread::prepare_if_main(DataReady::thread_handle);
|
||||
Thread::execute_next();
|
||||
execute_thread(CD::thread_handle);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user