PSPSDK 2024-12-24
Loading...
Searching...
No Matches
tls-helper.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pspkerneltypes.h>
#include <pspthreadman.h>
#include <sys/pte_generic_osal.h>
Include dependency graph for tls-helper.c:

Typedefs

typedef int pte_osThreadHandle
 
typedef int pte_osSemaphoreHandle
 
typedef int pte_osMutexHandle
 

Functions

pte_osResult __pteTlsAlloc (unsigned int *pKey)
 
voidpteTlsGetValue (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)
 

Variables

int__keysUsed
 
int __maxTlsValues
 
pte_osMutexHandle __globalTlsLock
 
void__globalTls
 

Typedef Documentation

◆ pte_osMutexHandle

◆ pte_osSemaphoreHandle

◆ pte_osThreadHandle

Function Documentation

◆ __getTlsStructFromThread()

void * __getTlsStructFromThread ( SceUID  thid)

◆ __pteTlsAlloc()

pte_osResult __pteTlsAlloc ( unsigned int pKey)

◆ __pteTlsSetValue()

pte_osResult __pteTlsSetValue ( void pTlsThreadStruct,
unsigned int  index,
void value 
)

◆ pteTlsFree()

pte_osResult pteTlsFree ( unsigned int  index)

◆ pteTlsGetValue()

void * pteTlsGetValue ( void pTlsThreadStruct,
unsigned int  index 
)

Variable Documentation

◆ __globalTls

void* __globalTls
extern

◆ __globalTlsLock

pte_osMutexHandle __globalTlsLock
extern

◆ __keysUsed

int* __keysUsed
extern

◆ __maxTlsValues

int __maxTlsValues
extern