RetroArch
tls-helper.h
Go to the documentation of this file.
1 /*
2  * tls-helper.h
3  *
4  * Description:
5  *
6  * --------------------------------------------------------------------------
7  *
8  * Pthreads-embedded (PTE) - POSIX Threads Library for embedded systems
9  * Copyright(C) 2008 Jason Schmidlapp
10  *
11  * Contact Email: jschmidlapp@users.sourceforge.net
12  *
13  * This library is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU Lesser General Public
15  * License as published by the Free Software Foundation; either
16  * version 2 of the License, or (at your option) any later version.
17  *
18  * This library is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21  * Lesser General Public License for more details.
22  *
23  * You should have received a copy of the GNU Lesser General Public
24  * License along with this library in the file COPYING.LIB;
25  * if not, write to the Free Software Foundation, Inc.,
26  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
27  */
28 
29 #ifndef _TLS_HELPER_H_
30 #define _TLS_HELPER_H_
31 
32 #include "../psp/pte_osal.h"
33 
34 /* @todo document.. */
35 
36 pte_osResult pteTlsGlobalInit(int maxEntries);
37 void * pteTlsThreadInit(void);
38 
39 pte_osResult pteTlsAlloc(unsigned int *pKey);
40 void * pteTlsGetValue(void *pTlsThreadStruct, unsigned int index);
41 pte_osResult pteTlsSetValue(void *pTlsThreadStruct, unsigned int index, void * value);
42 pte_osResult pteTlsFree(unsigned int index);
43 
44 void pteTlsThreadDestroy(void * pTlsThreadStruct);
45 void pteTlsGlobalDestroy(void);
46 
47 #endif // _TLS_HELPER_H_
pte_osResult
Definition: pte_generic_osal.h:38
pte_osResult pteTlsFree(unsigned int index)
Definition: tls-helper.c:134
void * pteTlsThreadInit(void)
Definition: tls-helper.c:66
pte_osResult pteTlsAlloc(unsigned int *pKey)
Definition: tls-helper.c:79
pte_osResult pteTlsGlobalInit(int maxEntries)
Definition: tls-helper.c:41
GLuint index
Definition: glext.h:6671
pte_osResult pteTlsSetValue(void *pTlsThreadStruct, unsigned int index, void *value)
Definition: tls-helper.c:117
GLsizei const GLfloat * value
Definition: glext.h:6709
void pteTlsGlobalDestroy(void)
Definition: tls-helper.c:159
void pteTlsThreadDestroy(void *pTlsThreadStruct)
Definition: tls-helper.c:154
void * pteTlsGetValue(void *pTlsThreadStruct, unsigned int index)
Definition: tls-helper.c:104