# Input and rendering in different threads?

**URL:** <https://discourse.glfw.org/t/input-and-rendering-in-different-threads/326>\
**Category:** support\
**Created:** [March 12, 2005, 6:39pm UTC](https://discourse.glfw.org/t/input-and-rendering-in-different-threads/326 "2005-03-12T18:39:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [March 12, 2005, 6:39pm UTC](https://discourse.glfw.org/t/input-and-rendering-in-different-threads/326/1 "2005-03-12T18:39:04Z")

</div>

**[synphreak](https://sourceforge.net/u/synphreak/)** wrote on [Saturday, March 12, 2005](https://sourceforge.net/p/glfw/discussion/247562/thread/42878390/#d929):

Is it safe to check input and render in seperate threads? If I disable GLFW\_AUTO\_POLL\_EVENTS and only call Input related functions (glfwPollEvents, glfwGetKey, etc) in a thread other than the one calling Rendering functions, is that thread safe?

If this is OK, would I need to call glfwInit() in each thread or just the first one that I create?

BTW, Glad to find a recently updated crossplatform OpenGL library! Good job!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [March 12, 2005, 7:50pm UTC](https://discourse.glfw.org/t/input-and-rendering-in-different-threads/326/2 "2005-03-12T19:50:58Z")

</div>

**[synphreak](https://sourceforge.net/u/synphreak/)** wrote on [Saturday, March 12, 2005](https://sourceforge.net/p/glfw/discussion/247562/thread/42878390/#d929/9e2a):

Nevermind. Just found this message:

[https://sourceforge.net/forum/message.php?msg\_id=2653407](https://sourceforge.net/forum/message.php?msg_id=2653407)
