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)
{
if (pthread_key_create(&_glfw.posix_tls.context, NULL) != 0)
{
@@ -44,12 +44,12 @@ int _glfwInitTLS(void)
return GL_TRUE;
}
void _glfwTerminateTLS(void)
void _glfwDestroyContextTLS(void)
{
pthread_key_delete(_glfw.posix_tls.context);
}
void _glfwSetCurrentContext(_GLFWwindow* context)
void _glfwSetContextTLS(_GLFWwindow* context)
{
pthread_setspecific(_glfw.posix_tls.context, context);
}