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/src
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
..
buffer.cpp Move QB64 compiler settings to libqb-common.h 2022-06-12 00:28:16 -04:00
console-only-main-thread.cpp Add GLUT command queue, processed on GLUT thread 2022-11-29 20:04:54 -05:00
filepath.cpp Revert changes to miniaudio.h, move changes elsewhere 2022-09-08 23:59:19 -04:00
glut-main-thread.cpp Move GLUT initialization logic into separate .cpp file 2022-11-29 20:04:53 -05:00
glut-message.cpp Add GLUT command queue, processed on GLUT thread 2022-11-29 20:04:54 -05:00
glut-message.h Add GLUT command queue, processed on GLUT thread 2022-11-29 20:04:54 -05:00
glut-msg-queue.cpp Add GLUT command queue, processed on GLUT thread 2022-11-29 20:04:54 -05:00
http-stub.cpp Add _StatusCode command for HTTP handles 2022-11-20 04:04:02 -05:00
http.cpp Add _StatusCode command for HTTP handles 2022-11-20 04:04:02 -05:00
mac-key-monitor.h Move GLUT initialization logic into separate .cpp file 2022-11-29 20:04:53 -05:00
mac-key-monitor.mm Move GLUT initialization logic into separate .cpp file 2022-11-29 20:04:53 -05:00
threading-posix.cpp posix mutex shouldn't allow NULL 2022-06-14 23:56:17 -04:00
threading-windows.cpp Move QB64 compiler settings to libqb-common.h 2022-06-12 00:28:16 -04:00
threading.cpp Use mutex guard in completion implementation 2022-06-14 23:58:04 -04:00