Explorar o código

thread: added declaration for __KernelReschedule to be used by syscall module

bunnei %!s(int64=12) %!d(string=hai) anos
pai
achega
f5a119a367
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/core/hle/kernel/thread.h

+ 3 - 0
src/core/hle/kernel/thread.h

@@ -28,6 +28,9 @@ Handle __KernelCreateThread(const char *name, u32 entry_point, s32 priority,
 /// Sets up the primary application thread
 Handle __KernelSetupMainThread(s32 priority, int stack_size=KERNEL_DEFAULT_STACK_SIZE);
 
+/// Reschedules to the next available thread (call after current thread is suspended)
+void __KernelReschedule(const char *reason);
+
 void __KernelThreadingInit();
 void __KernelThreadingShutdown();