1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-10 17:05:12 +00:00
QB64-PE/internal/c/libqb
Matthew Kilgore 7ef15653fd Add generic thread, mutex, and condvar API
This adds generic APIs to libqb for handling thread's, mutex's, and
condition variables. On Linux and OSX these are implemented via the ones
provided by pthreads. On Windows they're implemented via the ones
provided by the Win32 API.

For compiling, the code itself is not conditional, but the Makefile
includes logic to decide which implementation to pick.

Note that it would have been nice to simply use std::thread and friends
from C++11, however using them on MinGW appears to be a bit messy. Since
using the Windows ones directly isn't that hard this was an easy compromise.
2022-06-11 22:47:06 -04:00
..
include Add generic thread, mutex, and condvar API 2022-06-11 22:47:06 -04:00
src Add generic thread, mutex, and condvar API 2022-06-11 22:47:06 -04:00
build.mk Add generic thread, mutex, and condvar API 2022-06-11 22:47:06 -04:00