Clarified context TLS function names.

This commit is contained in:
Camilla Berglund
2015-05-05 03:31:20 +02:00
parent 6d5753c548
commit 38ca109766
8 changed files with 24 additions and 24 deletions
+3 -3
View File
@@ -32,7 +32,7 @@
////// GLFW internal API //////
//////////////////////////////////////////////////////////////////////////
int _glfwInitTLS(void)
int _glfwCreateContextTLS(void)
{
_glfw.win32_tls.context = TlsAlloc();
if (_glfw.win32_tls.context == TLS_OUT_OF_INDEXES)
@@ -46,13 +46,13 @@ int _glfwInitTLS(void)
return GL_TRUE;
}
void _glfwTerminateTLS(void)
void _glfwDestroyContextTLS(void)
{
if (_glfw.win32_tls.allocated)
TlsFree(_glfw.win32_tls.context);
}
void _glfwSetCurrentContext(_GLFWwindow* context)
void _glfwSetContextTLS(_GLFWwindow* context)
{
TlsSetValue(_glfw.win32_tls.context, context);
}