1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-09-16 10:53:56 +00:00
QB64-PE/internal/c/libqb/include
Matthew Kilgore 72193e34e5 Add GLUT command queue, processed on GLUT thread
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
2022-11-29 20:04:54 -05:00
..
audio.h Implement _SNDPLAYCOPY enhancement #185 2022-10-05 02:33:44 +05:30
buffer.h Add append-only buffer API 2022-06-11 22:47:06 -04:00
completion.h Add completion API 2022-06-11 22:47:06 -04:00
condvar.h Add generic thread, mutex, and condvar API 2022-06-11 22:47:06 -04:00
filepath.h Revert changes to miniaudio.h, move changes elsewhere 2022-09-08 23:59:19 -04:00
glut-thread.h Add GLUT command queue, processed on GLUT thread 2022-11-29 20:04:54 -05:00
gui.h Include stdarg.h in gui.h 2022-10-25 04:34:41 +05:30
http.h Add _StatusCode command for HTTP handles 2022-11-20 04:04:02 -05:00
image.h Update test license files 2022-10-25 07:28:35 +05:30
keyhandler.h Move GLUT initialization logic into separate .cpp file 2022-11-29 20:04:53 -05:00
libqb-common.h Fix High-DPI awareness on Windows 2022-08-28 21:44:07 -04:00
mutex.h Add generic thread, mutex, and condvar API 2022-06-11 22:47:06 -04:00
thread.h Add generic thread, mutex, and condvar API 2022-06-11 22:47:06 -04:00