1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-27 04:28:52 -05:00

Use GLFWbool for TLS functions

This commit is contained in:
Camilla Berglund 2015-10-28 14:51:47 +01:00
parent cdf08c1ff3
commit 25878d68e0
4 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@
////// GLFW internal API ////// ////// GLFW internal API //////
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
int _glfwCreateContextTLS(void) GLFWbool _glfwCreateContextTLS(void)
{ {
if (pthread_key_create(&_glfw.posix_tls.context, NULL) != 0) if (pthread_key_create(&_glfw.posix_tls.context, NULL) != 0)
{ {

View File

@ -43,7 +43,7 @@ typedef struct _GLFWtlsPOSIX
} _GLFWtlsPOSIX; } _GLFWtlsPOSIX;
int _glfwCreateContextTLS(void); GLFWbool _glfwCreateContextTLS(void);
void _glfwDestroyContextTLS(void); void _glfwDestroyContextTLS(void);
void _glfwSetContextTLS(_GLFWwindow* context); void _glfwSetContextTLS(_GLFWwindow* context);

View File

@ -32,7 +32,7 @@
////// GLFW internal API ////// ////// GLFW internal API //////
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
int _glfwCreateContextTLS(void) GLFWbool _glfwCreateContextTLS(void)
{ {
_glfw.win32_tls.context = TlsAlloc(); _glfw.win32_tls.context = TlsAlloc();
if (_glfw.win32_tls.context == TLS_OUT_OF_INDEXES) if (_glfw.win32_tls.context == TLS_OUT_OF_INDEXES)

View File

@ -41,7 +41,7 @@ typedef struct _GLFWtlsWin32
} _GLFWtlsWin32; } _GLFWtlsWin32;
int _glfwCreateContextTLS(void); GLFWbool _glfwCreateContextTLS(void);
void _glfwDestroyContextTLS(void); void _glfwDestroyContextTLS(void);
void _glfwSetContextTLS(_GLFWwindow* context); void _glfwSetContextTLS(_GLFWwindow* context);