Tagged functions one may not call from callbacks.

This commit is contained in:
Camilla Berglund 2013-02-14 18:49:03 +01:00
parent ec8273f249
commit b48128f339

View File

@ -1099,6 +1099,8 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, const char* title, G
* *
* @note This function may only be called from the main thread. * @note This function may only be called from the main thread.
* *
* @note This function may not be called from a callback.
*
* @note If the window's context is current on the main thread, it is * @note If the window's context is current on the main thread, it is
* detached before being destroyed. * detached before being destroyed.
* *
@ -1390,6 +1392,8 @@ GLFWAPI void glfwSetWindowIconifyCallback(GLFWwindow* window, GLFWwindowiconifyf
* *
* @note This function may only be called from the main thread. * @note This function may only be called from the main thread.
* *
* @note This function may not be called from a callback.
*
* @sa glfwWaitEvents * @sa glfwWaitEvents
*/ */
GLFWAPI void glfwPollEvents(void); GLFWAPI void glfwPollEvents(void);
@ -1399,6 +1403,8 @@ GLFWAPI void glfwPollEvents(void);
* *
* @note This function may only be called from the main thread. * @note This function may only be called from the main thread.
* *
* @note This function may not be called from a callback.
*
* @sa glfwPollEvents * @sa glfwPollEvents
*/ */
GLFWAPI void glfwWaitEvents(void); GLFWAPI void glfwWaitEvents(void);