1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 02:38:52 -05:00

Conservatively tagged functions confined to main thread.

This commit is contained in:
Camilla Berglund 2012-11-22 19:08:30 +01:00
parent 998cb5144e
commit 9ad1d979e9

View File

@ -832,6 +832,8 @@ typedef struct
* @remarks Additional calls to this function after successful initialization
* but before termination will succeed but will do nothing.
*
* @note This function may only be called from the main thread.
*
* @note This function may take several seconds to complete on some systems,
* while on other systems it may take only a fraction of a second to complete.
*
@ -848,6 +850,8 @@ GLFWAPI int glfwInit(void);
*
* @remarks This function may be called before @ref glfwInit.
*
* @note This function may only be called from the main thread.
*
* @note This function closes all GLFW windows.
*
* @note This function should be called before the program exits.
@ -971,6 +975,8 @@ GLFWAPI void glfwSetGammaRamp(const GLFWgammaramp* ramp);
*
* @ingroup window
*
* @note This function may only be called from the main thread.
*
* @sa glfwWindowHint
*/
GLFWAPI void glfwDefaultWindowHints(void);
@ -1049,6 +1055,8 @@ GLFWAPI void glfwDefaultWindowHints(void);
* @arg @ref GLFW_OPENGL_FORWARD_COMPAT
* @arg @ref GLFW_OPENGL_PROFILE
*
* @note This function may only be called from the main thread.
*
* @sa glfwDefaultWindowHints
*/
GLFWAPI void glfwWindowHint(int target, int hint);
@ -1092,6 +1100,8 @@ GLFWAPI void glfwWindowHint(int target, int hint);
* bundle. For more information on bundles, see the Bundle Programming Guide
* provided by Apple.
*
* @note This function may only be called from the main thread.
*
* @sa glfwDestroyWindow
*/
GLFWAPI GLFWwindow glfwCreateWindow(int width, int height, int mode, const char* title, GLFWwindow share);
@ -1100,6 +1110,8 @@ GLFWAPI GLFWwindow glfwCreateWindow(int width, int height, int mode, const char*
* @param[in] window The window to destroy.
* @ingroup window
*
* @note This function may only be called from the main thread.
*
* @note If the window's context is current on the main thread, it is
* detached before being destroyed.
*
@ -1113,6 +1125,8 @@ GLFWAPI void glfwDestroyWindow(GLFWwindow window);
* @param[in] window The window whose title to change.
* @param[in] title The UTF-8 encoded window title.
* @ingroup window
*
* @note This function may only be called from the main thread.
*/
GLFWAPI void glfwSetWindowTitle(GLFWwindow window, const char* title);
@ -1132,6 +1146,8 @@ GLFWAPI void glfwGetWindowSize(GLFWwindow window, int* width, int* height);
* @param[in] height The desired height of the specified window.
* @ingroup window
*
* @note This function may only be called from the main thread.
*
* @note The window manager may put limits on what window sizes are allowed.
*
* @note For fullscreen windows, this function selects and switches to the
@ -1148,6 +1164,8 @@ GLFWAPI void glfwSetWindowSize(GLFWwindow window, int width, int height);
*
* @remarks If the window is already iconified, this function does nothing.
*
* @note This function may only be called from the main thread.
*
* @sa glfwRestoreWindow
*/
GLFWAPI void glfwIconifyWindow(GLFWwindow window);
@ -1158,6 +1176,8 @@ GLFWAPI void glfwIconifyWindow(GLFWwindow window);
*
* @remarks If the window is already restored, this function does nothing.
*
* @note This function may only be called from the main thread.
*
* @sa glfwIconifyWindow
*/
GLFWAPI void glfwRestoreWindow(GLFWwindow window);
@ -1168,6 +1188,8 @@ GLFWAPI void glfwRestoreWindow(GLFWwindow window);
*
* @remarks If the window is already visible, this function does nothing.
*
* @note This function may only be called from the main thread.
*
* @sa glfwHideWindow
*/
GLFWAPI void glfwShowWindow(GLFWwindow window);
@ -1178,6 +1200,8 @@ GLFWAPI void glfwShowWindow(GLFWwindow window);
*
* @remarks If the window is already hidden, this function does nothing.
*
* @note This function may only be called from the main thread.
*
* @sa glfwShowWindow
*/
GLFWAPI void glfwHideWindow(GLFWwindow window);
@ -1247,6 +1271,8 @@ GLFWAPI void glfwSetWindowIconifyCallback(GLFWwindow window, GLFWwindowiconifyfu
/*! @brief Processes all pending events.
* @ingroup window
*
* @note This function may only be called from the main thread.
*
* @sa glfwWaitEvents
*/
GLFWAPI void glfwPollEvents(void);
@ -1254,6 +1280,8 @@ GLFWAPI void glfwPollEvents(void);
/*! @brief Waits until events are pending and processes them.
* @ingroup window
*
* @note This function may only be called from the main thread.
*
* @sa glfwPollEvents
*/
GLFWAPI void glfwWaitEvents(void);