|
PSPSDK 2025-10-12
|
#include <pthread.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <pspkerror.h>#include <pspthreadman.h>#include <pspsdk.h>#include <sys/pte_generic_osal.h>
Data Structures | |
| struct | pspThreadData |
Macros | |
| #define | MAX_PSP_UID 2048 |
| #define | DEFAULT_STACK_SIZE_BYTES 4096 |
| #define | PSP_MAX_TLS 32 |
| #define | PSP_DEBUG(x) |
| #define | POLLING_DELAY_IN_us 100 |
Typedefs | |
| typedef int | pte_osThreadHandle |
| typedef int | pte_osSemaphoreHandle |
| typedef int | pte_osMutexHandle |
| typedef struct pspThreadData | pspThreadData |
Functions | |
| pte_osResult | pteTlsGlobalInit (int maxEntries) |
| void * | pteTlsThreadInit (void) |
| pte_osResult | __pteTlsAlloc (unsigned int *pKey) |
| void * | pteTlsGetValue (void *pTlsThreadStruct, unsigned int index) |
| pte_osResult | __pteTlsSetValue (void *pTlsThreadStruct, unsigned int index, void *value) |
| void * | __getTlsStructFromThread (SceUID thid) |
| pte_osResult | pteTlsFree (unsigned int index) |
| void | pteTlsThreadDestroy (void *pTlsThreadStruct) |
| void | pteTlsGlobalDestroy (void) |
| pspThreadData * | __getThreadData (SceUID threadHandle) |
| int | __pspStubThreadEntry (unsigned int argc, void *argv) |
Variables | |
| unsigned int | __threadDataKey |
| void * | __globalTls |
| #define DEFAULT_STACK_SIZE_BYTES 4096 |
| #define MAX_PSP_UID 2048 |
| #define POLLING_DELAY_IN_us 100 |
| #define PSP_DEBUG | ( | x | ) |
| #define PSP_MAX_TLS 32 |
| typedef struct pspThreadData pspThreadData |
| typedef int pte_osMutexHandle |
| typedef int pte_osSemaphoreHandle |
| typedef int pte_osThreadHandle |
| pspThreadData * __getThreadData | ( | SceUID | threadHandle | ) |
| void * __getTlsStructFromThread | ( | SceUID | thid | ) |
|
extern |
| pte_osResult __pteTlsAlloc | ( | unsigned int * | pKey | ) |
| pte_osResult __pteTlsSetValue | ( | void * | pTlsThreadStruct, |
| unsigned int | index, | ||
| void * | value ) |
| pte_osResult pteTlsFree | ( | unsigned int | index | ) |
| void * pteTlsGetValue | ( | void * | pTlsThreadStruct, |
| unsigned int | index ) |
| void pteTlsGlobalDestroy | ( | void | ) |
| pte_osResult pteTlsGlobalInit | ( | int | maxEntries | ) |
| void pteTlsThreadDestroy | ( | void * | pTlsThreadStruct | ) |
| void * pteTlsThreadInit | ( | void | ) |
|
extern |
|
extern |