From 487557b343d01ee7e543e0465311e5cddbef1b10 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 6 Mar 2016 11:43:02 +0100 Subject: [PATCH] Relax thread constraints for glfwSetTime --- include/GLFW/glfw3.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/GLFW/glfw3.h b/include/GLFW/glfw3.h index 85510d64..5e653423 100644 --- a/include/GLFW/glfw3.h +++ b/include/GLFW/glfw3.h @@ -3534,8 +3534,8 @@ GLFWAPI const char* glfwGetClipboardString(GLFWwindow* window); * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. + * @thread_safety This function may be called from any thread. Reading of the + * internal timer offset is not atomic. * * @sa @ref time * @@ -3560,7 +3560,8 @@ GLFWAPI double glfwGetTime(void); * floor((264 - 1) / 109) and is due to implementations * storing nanoseconds in 64 bits. The limit may be increased in the future. * - * @thread_safety This function must only be called from the main thread. + * @thread_safety This function may be called from any thread. Writing of the + * internal timer offset is not atomic. * * @sa @ref time *