From 7105e4ed660c968bbdf6e9e2c77501281f6628f9 Mon Sep 17 00:00:00 2001 From: Davee Date: Sun, 4 Sep 2016 21:49:03 +0100 Subject: added sceKernelGetThreadTLSAddr and sceKernelGetTLSAddr --- include/user/kernel/threadmgr.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/user/kernel/threadmgr.h') diff --git a/include/user/kernel/threadmgr.h b/include/user/kernel/threadmgr.h index 75d429a..c984c36 100644 --- a/include/user/kernel/threadmgr.h +++ b/include/user/kernel/threadmgr.h @@ -1020,6 +1020,21 @@ int sceKernelUnlockLwMutex(SceKernelLwMutexWork *pWork, int unlockCount); */ SceInt64 sceKernelGetSystemTimeWide(void); +/** + * @brief sceKernelGetThreadTLSAddr gets an address to a 4 bytes area of TLS memory for the specified thread + * @param thid - The UID of the thread to access TLS + * @param key - the TLS keyslot index + * @return pointer to TLS memory + */ +void *sceKernelGetThreadTLSAddr(SceUID thid, int key); + +/** + * @brief sceKernelGetTLSAddr get pointer to TLS key area for current thread + * @param key - the TLS keyslot index + * @return pointer to TLS key value + */ +void *sceKernelGetTLSAddr(int key); + #ifdef __cplusplus } #endif -- cgit v1.2.3