# Sleep deprecated?

**URL:** <https://discourse.glfw.org/t/sleep-deprecated/283>\
**Category:** support\
**Created:** [August 29, 2010, 11:38am UTC](https://discourse.glfw.org/t/sleep-deprecated/283 "2010-08-29T11:38:48Z")\
**Posts on this page:** 10\
**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:** [August 29, 2010, 11:38am UTC](https://discourse.glfw.org/t/sleep-deprecated/283/1 "2010-08-29T11:38:48Z")

</div>

**[cameronking](https://sourceforge.net/u/cameronking/)** wrote on [Sunday, August 29, 2010](https://sourceforge.net/p/glfw/discussion/247562/thread/70cf8184/#4bf4):

It says in the FAQ that the threading functions of GLFW are deprecated and  
will be removed in future versions.

I updated to the Trunk version of GLFW and I’m finding that glfwSleep isn’t  
really working (seems like its skipping it), is it part of the threading  
system that has been deprecated?

Thanks.

---

<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:** [August 29, 2010, 12:08pm UTC](https://discourse.glfw.org/t/sleep-deprecated/283/2 "2010-08-29T12:08:38Z")

</div>

**[cameronking](https://sourceforge.net/u/cameronking/)** wrote on [Sunday, August 29, 2010](https://sourceforge.net/p/glfw/discussion/247562/thread/70cf8184/#7d5e):

It’s ok!

I didn’t initialize GLFW in my windowless app… I had the GLFWinit in the  
window function… 🙂 Duurrr…

---

<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:** [August 29, 2010, 12:27pm UTC](https://discourse.glfw.org/t/sleep-deprecated/283/3 "2010-08-29T12:27:24Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Sunday, August 29, 2010](https://sourceforge.net/p/glfw/discussion/247562/thread/70cf8184/#c581):

Good that it’s working now 🙂

…and yes, Sleep is among the functions that will be removed.

---

<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:** [August 29, 2010, 12:34pm UTC](https://discourse.glfw.org/t/sleep-deprecated/283/4 "2010-08-29T12:34:56Z")

</div>

**[cameronking](https://sourceforge.net/u/cameronking/)** wrote on [Sunday, August 29, 2010](https://sourceforge.net/p/glfw/discussion/247562/thread/70cf8184/#1995):

Why is it being removed?

---

<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:** [August 29, 2010, 1:16pm UTC](https://discourse.glfw.org/t/sleep-deprecated/283/5 "2010-08-29T13:16:03Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Sunday, August 29, 2010](https://sourceforge.net/p/glfw/discussion/247562/thread/70cf8184/#fb0e):

I started a page for this:

[http://wiki.glfw.org/wiki/Rationale\_for\_removing](http://wiki.glfw.org/wiki/Rationale_for_removing)

---

<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:** [August 29, 2010, 1:21pm UTC](https://discourse.glfw.org/t/sleep-deprecated/283/6 "2010-08-29T13:21:35Z")

</div>

**[cameronking](https://sourceforge.net/u/cameronking/)** wrote on [Sunday, August 29, 2010](https://sourceforge.net/p/glfw/discussion/247562/thread/70cf8184/#60a7):

Seems a fine idea.

Thanks.

---

<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:** [April 21, 2011, 6:15am UTC](https://discourse.glfw.org/t/sleep-deprecated/283/7 "2011-04-21T06:15:43Z")

</div>

**anonymous** wrote on [Thursday, April 21, 2011](https://sourceforge.net/p/glfw/discussion/247562/thread/70cf8184/#e931):

I understand removing threading/images/textures - but why glfwSleep()? Seems  
that is useful considering there is a timer.

---

<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:** [April 21, 2011, 12:37pm UTC](https://discourse.glfw.org/t/sleep-deprecated/283/8 "2011-04-21T12:37:03Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Thursday, April 21, 2011](https://sourceforge.net/p/glfw/discussion/247562/thread/70cf8184/#aec2):

glfwSleep does not use the timer on any platform, as that would imply busy-  
waiting. Also, it only suspends the calling thread, which requires threading  
API specific code on some platforms.

---

<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:** [April 22, 2011, 5:19pm UTC](https://discourse.glfw.org/t/sleep-deprecated/283/9 "2011-04-22T17:19:03Z")

</div>

**anonymous** wrote on [Friday, April 22, 2011](https://sourceforge.net/p/glfw/discussion/247562/thread/70cf8184/#0c6b):

Do you have a full list of what is being deprecated/deleted in next version?

---

<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:** [April 22, 2011, 6:46pm UTC](https://discourse.glfw.org/t/sleep-deprecated/283/10 "2011-04-22T18:46:08Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Friday, April 22, 2011](https://sourceforge.net/p/glfw/discussion/247562/thread/70cf8184/#3e7c):

I guess the changelog is the best source for now:

[[http://glfw.git.sourceforge.net/git/gitweb.cgi?p=glfw/glfw;a=blob\_plain;f=re](http://glfw.git.sourceforge.net/git/gitweb.cgi?p=glfw/glfw;a=blob_plain;f=re)  
adme.html;hb=HEAD#changelog]([http://glfw.git.sourceforge.net/git/gitweb.cgi?p](http://glfw.git.sourceforge.net/git/gitweb.cgi?p)  
=glfw/glfw%3Ba=blob\_plain%3Bf=readme.html%3Bhb=HEAD#changelog)
