Threads in GLBasic?

Previous topic - Next topic


Hello GLBasic Programmers, I have a simple question.
Does GLBasic support threads in Windows?


It's possible, but it's not thread safe at all. So crash is very easy to been happens.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 -


There is an example in these forums (and possibly in the examples directory with your GLBasic installation) too...


(Official) multithread support:
But use Graphic/sound/etc commands in main thread only, your secondary threads are for expensive logic only.
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64


Thank you for your replies.
The pthreads-win32 project might be a way to provide multi-threading support.
Has anyone here used it in a GLBASIC program?