Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow using ThreadPool synchronously #1346
Previously, a test was using
This PR adds two things:
This lets you use the
changed the title from
Allow using the ThreadPool synchronously
Allow using ThreadPool synchronously
Jul 5, 2015
added a commit
this pull request
Aug 21, 2015
I kind of makes sense on how flush originally worked as intended for threadpool. at least in the case of say OpenGL, a flush command simply "flushes" the GL commands to the gpu, while swapBuffers actually is the blocking call. I kinda always assumed that a flush ment not blocking, rather just push everything out of the queue. However, I do like having the option for sync!
Not completely ralated, so off topic a bit, but just clarifying what I think their intentions were behind flush, if you look at other things that use dispatchers.