PSPSDK 2024-12-24
|
#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_MAX_TLS 32 |
pspThreadData * __getThreadData | ( | SceUID | threadHandle | ) |
pte_osResult __pteTlsAlloc | ( | unsigned int * | pKey | ) |
pte_osResult __pteTlsSetValue | ( | void * | pTlsThreadStruct, |
unsigned int | index, | ||
void * | value | ||
) |
pte_osResult pteTlsFree | ( | unsigned int | index | ) |
pte_osResult pteTlsGlobalInit | ( | int | maxEntries | ) |
|
extern |