Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is GLFW thread safe?

glfw safe thread
0
Posted

Is GLFW thread safe?

0

No. However, neither is OpenGL. Note that the threading facilities are deprecated and have been removed in GLFW 3.0. The threading part of the GLFW API (threads, mutexes and condition variables) is thread safe, as is the glfwSleep function. Other functions are NOT thread safe, and calling them from different threads may result in an inconsistent GLFW state. It is recommended that all OpenGL and GLFW calls (except for thread management and synchronization calls) are made from the main thread, which should not be a big problem since only a single window is supported. This method is also compatible with the future direction of GLFW.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.