Sleep deprecated?

cameronking wrote on Sunday, August 29, 2010:

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.

cameronking wrote on Sunday, August 29, 2010:

It’s ok!

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

elmindreda wrote on Sunday, August 29, 2010:

Good that it’s working now :slight_smile:

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

cameronking wrote on Sunday, August 29, 2010:

Why is it being removed?

elmindreda wrote on Sunday, August 29, 2010:

I started a page for this:

http://wiki.glfw.org/wiki/Rationale_for_removing

cameronking wrote on Sunday, August 29, 2010:

Seems a fine idea.

Thanks.

anonymous wrote on Thursday, April 21, 2011:

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

elmindreda wrote on Thursday, April 21, 2011:

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.

anonymous wrote on Friday, April 22, 2011:

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

elmindreda wrote on Friday, April 22, 2011:

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
adme.html;hb=HEAD#changelog](http://glfw.git.sourceforge.net/git/gitweb.cgi?p
=glfw/glfw%3Ba=blob_plain%3Bf=readme.html%3Bhb=HEAD#changelog)