Skip to content

Commit

Permalink
Add SCE_KERNEL_THREAD_ID_SELF
Browse files Browse the repository at this point in the history
Also removed comments of confusion related to missing define.
May have missed some.
  • Loading branch information
CreepNT authored and d3m3vilurr committed Jan 12, 2022
1 parent d51edbc commit 15b7281
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions include/psp2/kernel/threadmgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,7 @@ int sceKernelCheckThreadStack(void);
/**
* Get the free stack size for a thread.
*
* @param thid - The thread ID. Seem to take current thread
* if set to 0.
* @param thid - The thread ID
*
* @return The free size.
*/
Expand Down
4 changes: 2 additions & 2 deletions include/psp2common/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ typedef char* SceName; //!< Names are used to describe object names
/** 64-bit system clock type. */
typedef SceUInt64 SceKernelSysClock;


#define SCE_KERNEL_PROCESS_ID_SELF 0 //!< Current running process ID is always 0
#define SCE_KERNEL_THREAD_ID_SELF 0 //!< Current thread's UID - pass to APIs expecting a thread ID to operate on calling thread
#define SCE_KERNEL_PROCESS_ID_SELF 0 //!< Current process's UID - pass to APIs expecting a process ID to operate on calling process
#define SCE_UID_NAMELEN 31 //!< Maximum length for kernel object names


Expand Down
3 changes: 1 addition & 2 deletions include/psp2kern/kernel/threadmgr/thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,7 @@ int ksceKernelGetThreadCurrentPriority(void);
/**
* Get the free stack size for a thread.
*
* @param thid - The thread ID. Seem to take current thread
* if set to 0.
* @param thid - The thread ID
*
* @return The free size.
*/
Expand Down

0 comments on commit 15b7281

Please sign in to comment.