- added enum ThreadProcessorId
- reorganized some kernel thread functions - added placeholder __KernelWaitThread_Synchronization function
This commit is contained in:
parent
43bc2ac724
commit
14ae026386
2 changed files with 107 additions and 53 deletions
|
@ -9,8 +9,20 @@
|
|||
|
||||
class Thread;
|
||||
|
||||
/// Creates a new thread
|
||||
Thread *__KernelCreateThread(Handle &handle, const char *name, u32 entry_point, s32 priority,
|
||||
enum ThreadPriority {
|
||||
THREADPRIO_HIGHEST = 0,
|
||||
THREADPRIO_DEFAULT = 16,
|
||||
THREADPRIO_LOWEST = 31,
|
||||
};
|
||||
|
||||
enum ThreadProcessorId {
|
||||
THREADPROCESSORID_0 = 0xFFFFFFFE,
|
||||
THREADPROCESSORID_1 = 0xFFFFFFFD,
|
||||
THREADPROCESSORID_ALL = 0xFFFFFFFC,
|
||||
};
|
||||
|
||||
/// Creates a new thread - wrapper for external user
|
||||
Handle __KernelCreateThread(const char *name, u32 entry_point, s32 priority,
|
||||
s32 processor_id, u32 stack_top, int stack_size=KERNEL_DEFAULT_STACK_SIZE);
|
||||
|
||||
/// Sets up the primary application thread
|
||||
|
@ -18,3 +30,6 @@ Handle __KernelSetupMainThread(s32 priority, int stack_size=KERNEL_DEFAULT_STACK
|
|||
|
||||
void __KernelThreadingInit();
|
||||
void __KernelThreadingShutdown();
|
||||
|
||||
/// Wait thread - on WaitSynchronization
|
||||
void __KernelWaitThread_Synchronization();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue