mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-20 09:04:43 +00:00
72193e34e5
This fixes all the code so that all the calls to glut functions happen on the same thread that is running GLUT. We achieve this by creating a queue of GLUT commands to execute. Commands can be added to the queue anywhere in the code, and then the queue is processed on the GLUT thread via it's idle func or timer func. The command is run and if necessary the result is provided in the message queue object. Each object contains a completion which can be waited on to block until the GLUT thread has processed the command. Fixes: #66 |
||
---|---|---|
.. | ||
audio.h | ||
buffer.h | ||
completion.h | ||
condvar.h | ||
filepath.h | ||
glut-thread.h | ||
gui.h | ||
http.h | ||
image.h | ||
keyhandler.h | ||
libqb-common.h | ||
mutex.h | ||
thread.h |