Changes

82 bytes added ,  00:27, 10 November 2016
ALL thread syscalls seem to support threadid0 -> current thread... but it doesn't make sense to use that for some of them
Line 107: Line 107:  
| 0x01 || 0x01 || int thread_join(int threadid, u32 *returned_value) || Waits for a thread to finish executing || 0 on success
 
| 0x01 || 0x01 || int thread_join(int threadid, u32 *returned_value) || Waits for a thread to finish executing || 0 on success
 
|-
 
|-
| 0x02 || 0x02 || int thread_cancel(int threadid, u32 return_value)  || Cancels an active thread || 0 on success
+
| 0x02 || 0x02 || int thread_cancel(int threadid, u32 return_value)  || Cancels an active thread. Threadid 0 will use the current thread. || 0 on success
 
|-
 
|-
 
| 0x03 || 0x03 || int get_tid() || Get the current thread's ID || Current threadid
 
| 0x03 || 0x03 || int get_tid() || Get the current thread's ID || Current threadid
Line 119: Line 119:  
| 0x07 || 0x07 || int IOS_StartThread(int threadid) || Resume the specified thread || 0 on success
 
| 0x07 || 0x07 || int IOS_StartThread(int threadid) || Resume the specified thread || 0 on success
 
|-
 
|-
| 0x08 || 0x08 || int thread_suspend(int threadid) || Suspend the specified thread || 0 on success
+
| 0x08 || 0x08 || int thread_suspend(int threadid) || Suspend the specified thread. Threadid 0 will use the current thread. || 0 on success
 
|-
 
|-
 
| 0x09 || 0x09 || int thread_yield() || Yield execution to any higher priority threads || 0 on success
 
| 0x09 || 0x09 || int thread_yield() || Yield execution to any higher priority threads || 0 on success
27

edits