summaryrefslogtreecommitdiff
path: root/include/kernel/kernel/threadmgr.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/kernel/kernel/threadmgr.h')
-rw-r--r--include/kernel/kernel/threadmgr.h39
1 files changed, 19 insertions, 20 deletions
diff --git a/include/kernel/kernel/threadmgr.h b/include/kernel/kernel/threadmgr.h
index 9ae804c..b4814e2 100644
--- a/include/kernel/kernel/threadmgr.h
+++ b/include/kernel/kernel/threadmgr.h
@@ -89,8 +89,7 @@ typedef struct SceKernelThreadRunStatus {
} SceKernelThreadRunStatus;
/* Sure there must be more than this, but haven't seen them */
-typedef enum SceThreadStatus
-{
+typedef enum SceThreadStatus {
SCE_THREAD_RUNNING = 1,
SCE_THREAD_READY = 2,
SCE_THREAD_WAITING = 4,
@@ -134,7 +133,7 @@ int sceKernelDeleteThread(SceUID thid);
/**
* Start a created thread
*
- * @param thid - Thread id from sceKernelCreateThread
+ * @param thid - Thread id from ::sceKernelCreateThread
* @param arglen - Length of the data pointed to by argp, in bytes
* @param argp - Pointer to the arguments.
*/
@@ -213,7 +212,7 @@ int sceKernelChangeCurrentThreadAttr(int unknown, SceUInt attr);
/**
* Change the threads current priority.
*
- * @param thid - The ID of the thread (from sceKernelCreateThread or sceKernelGetThreadId)
+ * @param thid - The ID of the thread (from ::sceKernelCreateThread or ::sceKernelGetThreadId)
* @param priority - The new priority (the lower the number the higher the priority)
*
* @par Example:
@@ -371,7 +370,7 @@ int sceKernelDeleteSema(SceUID semaid);
* sceKernelSignalSema(semaid, 1);
* @endcode
*
- * @param semaid - The sema id returned from sceKernelCreateSema
+ * @param semaid - The sema id returned from ::sceKernelCreateSema
* @param signal - The amount to signal the sema (i.e. if 2 then increment the sema by 2)
*
* @return < 0 On error.
@@ -386,7 +385,7 @@ int sceKernelSignalSema(SceUID semaid, int signal);
* sceKernelWaitSema(semaid, 1, 0);
* @endcode
*
- * @param semaid - The sema id returned from sceKernelCreateSema
+ * @param semaid - The sema id returned from ::sceKernelCreateSema
* @param signal - The value to wait for (i.e. if 1 then wait till reaches a signal state of 1)
* @param timeout - Timeout in microseconds (assumed).
*
@@ -402,7 +401,7 @@ int sceKernelWaitSema(SceUID semaid, int signal, SceUInt *timeout);
* sceKernelWaitSemaCB(semaid, 1, 0);
* @endcode
*
- * @param semaid - The sema id returned from sceKernelCreateSema
+ * @param semaid - The sema id returned from ::sceKernelCreateSema
* @param signal - The value to wait for (i.e. if 1 then wait till reaches a signal state of 1)
* @param timeout - Timeout in microseconds (assumed).
*
@@ -423,7 +422,7 @@ int sceKernelPollSema(SceUID semaid, int signal);
/**
* Cancels a semaphore
*
- * @param semaid - The sema id returned from sceKernelCreateSema
+ * @param semaid - The sema id returned from ::sceKernelCreateSema
* @param setCount - The new lock count of the semaphore
* @param numWaitThreads - Number of threads waiting for the semaphore
* @return < 0 On error.
@@ -492,7 +491,7 @@ SceUID sceKernelCreateMutex(const char *name, SceUInt attr, int initCount, SceKe
/**
* Destroy a mutex
*
- * @param mutexid - The mutex id returned from sceKernelCreateMutex
+ * @param mutexid - The mutex id returned from ::sceKernelCreateMutex
* @return Returns the value 0 if it's successful, otherwise -1
*/
int sceKernelDeleteMutex(SceUID mutexid);
@@ -508,7 +507,7 @@ int sceKernelOpenMutex(const char *name);
/**
* Close a mutex
*
- * @param mutexid - The mutex id returned from sceKernelCreateMutex
+ * @param mutexid - The mutex id returned from ::sceKernelCreateMutex
* @return Returns the value 0 if it's successful, otherwise -1
*/
int sceKernelCloseMutex(SceUID mutexid);
@@ -516,7 +515,7 @@ int sceKernelCloseMutex(SceUID mutexid);
/**
* Lock a mutex
*
- * @param mutexid - The mutex id returned from sceKernelCreateMutex
+ * @param mutexid - The mutex id returned from ::sceKernelCreateMutex
* @param lockCount - The value to increment to the lock count of the mutex
* @param timeout - Timeout in microseconds (assumed)
* @return < 0 On error.
@@ -526,7 +525,7 @@ int sceKernelLockMutex(SceUID mutexid, int lockCount, unsigned int *timeout);
/**
* Lock a mutex and handle callbacks if necessary.
*
- * @param mutexid - The mutex id returned from sceKernelCreateMutex
+ * @param mutexid - The mutex id returned from ::sceKernelCreateMutex
* @param lockCount - The value to increment to the lock count of the mutex
* @param timeout - Timeout in microseconds (assumed)
* @return < 0 On error.
@@ -536,7 +535,7 @@ int sceKernelLockMutexCB(SceUID mutexid, int lockCount, unsigned int *timeout);
/**
* Try to lock a mutex (non-blocking)
*
- * @param mutexid - The mutex id returned from sceKernelCreateMutex
+ * @param mutexid - The mutex id returned from ::sceKernelCreateMutex
* @param lockCount - The value to increment to the lock count of the mutex
* @return < 0 On error.
*/
@@ -545,7 +544,7 @@ int sceKernelTryLockMutex(SceUID mutexid, int lockCount);
/**
* Try to unlock a mutex (non-blocking)
*
- * @param mutexid - The mutex id returned from sceKernelCreateMutex
+ * @param mutexid - The mutex id returned from ::sceKernelCreateMutex
* @param unlockCount - The value to decrement to the lock count of the mutex
* @return < 0 On error.
*/
@@ -554,7 +553,7 @@ int sceKernelUnlockMutex(SceUID mutexid, int unlockCount);
/**
* Cancels a mutex
*
- * @param mutexid - The mutex id returned from sceKernelCreateMutex
+ * @param mutexid - The mutex id returned from ::sceKernelCreateMutex
* @param newCount - The new lock count of the mutex
* @param numWaitThreads - Number of threads waiting for the mutex
* @return < 0 On error.
@@ -629,7 +628,7 @@ SceUID sceKernelCreateEventFlag(const char *name, int attr, int bits, SceKernelE
/**
* Set an event flag bit pattern.
*
- * @param evid - The event id returned by sceKernelCreateEventFlag.
+ * @param evid - The event id returned by ::sceKernelCreateEventFlag.
* @param bits - The bit pattern to set.
*
* @return < 0 On error
@@ -649,7 +648,7 @@ int sceKernelClearEventFlag(SceUID evid, unsigned int bits);
/**
* Poll an event flag for a given bit pattern.
*
- * @param evid - The event id returned by sceKernelCreateEventFlag.
+ * @param evid - The event id returned by ::sceKernelCreateEventFlag.
* @param bits - The bit pattern to poll for.
* @param wait - Wait type, one or more of ::SceEventFlagWaitTypes or'ed together
* @param outBits - The bit pattern that was matched.
@@ -660,7 +659,7 @@ int sceKernelPollEventFlag(int evid, unsigned int bits, unsigned int wait, unsig
/**
* Wait for an event flag for a given bit pattern.
*
- * @param evid - The event id returned by sceKernelCreateEventFlag.
+ * @param evid - The event id returned by ::sceKernelCreateEventFlag.
* @param bits - The bit pattern to poll for.
* @param wait - Wait type, one or more of ::SceEventFlagWaitTypes or'ed together
* @param outBits - The bit pattern that was matched.
@@ -672,7 +671,7 @@ int sceKernelWaitEventFlag(int evid, unsigned int bits, unsigned int wait, unsig
/**
* Wait for an event flag for a given bit pattern with callback.
*
- * @param evid - The event id returned by sceKernelCreateEventFlag.
+ * @param evid - The event id returned by ::sceKernelCreateEventFlag.
* @param bits - The bit pattern to poll for.
* @param wait - Wait type, one or more of ::SceEventFlagWaitTypes or'ed together
* @param outBits - The bit pattern that was matched.
@@ -684,7 +683,7 @@ int sceKernelWaitEventFlagCB(int evid, unsigned int bits, unsigned int wait, uns
/**
* Delete an event flag
*
- * @param evid - The event id returned by sceKernelCreateEventFlag.
+ * @param evid - The event id returned by ::sceKernelCreateEventFlag.
*
* @return < 0 On error
*/