mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
Use GLFWbool for TLS functions
This commit is contained in:
parent
cdf08c1ff3
commit
25878d68e0
@ -32,7 +32,7 @@
|
||||
////// GLFW internal API //////
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
int _glfwCreateContextTLS(void)
|
||||
GLFWbool _glfwCreateContextTLS(void)
|
||||
{
|
||||
if (pthread_key_create(&_glfw.posix_tls.context, NULL) != 0)
|
||||
{
|
||||
|
@ -43,7 +43,7 @@ typedef struct _GLFWtlsPOSIX
|
||||
} _GLFWtlsPOSIX;
|
||||
|
||||
|
||||
int _glfwCreateContextTLS(void);
|
||||
GLFWbool _glfwCreateContextTLS(void);
|
||||
void _glfwDestroyContextTLS(void);
|
||||
void _glfwSetContextTLS(_GLFWwindow* context);
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
||||
////// GLFW internal API //////
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
int _glfwCreateContextTLS(void)
|
||||
GLFWbool _glfwCreateContextTLS(void)
|
||||
{
|
||||
_glfw.win32_tls.context = TlsAlloc();
|
||||
if (_glfw.win32_tls.context == TLS_OUT_OF_INDEXES)
|
||||
|
@ -41,7 +41,7 @@ typedef struct _GLFWtlsWin32
|
||||
} _GLFWtlsWin32;
|
||||
|
||||
|
||||
int _glfwCreateContextTLS(void);
|
||||
GLFWbool _glfwCreateContextTLS(void);
|
||||
void _glfwDestroyContextTLS(void);
|
||||
void _glfwSetContextTLS(_GLFWwindow* context);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user