05-27-2024, 02:32 PM
Quote:I would caution you that the QB64 runtime is designed around the QB64 code only running on a single thread. It _will_ blow up if you attempt to do anything non-trivial, there's nothing you can do about it. Feel free to still play around with this, but I just want to be honest with you before you spend more time on this, practically speaking this is a dead-end.I'm very well aware that QB64 is not designed for this. I stated this in the last paragraph. In my numerous failed attempts, I'm beginning to learn where the boundaries are. Once, I understand the boundaries, I can write my code accordingly.
Quote:I am not sure how your way work for you and don't have time to investigateI'm using pthreads which is built into QB64, in all of the platforms. So, I avoid anything that would exclude one platform or another. I personally use Linux for 99% of everything, but I understand that I'm a minority.
but on Windows is a way to use win api call ..like is explained on this site
https://aljensencprogramming.wordpress.c...win32-api/
I just tried this threading once in freeBasic and i was not happy with results.
My first "working" threading attempts were disappointing, but I began to understand my implementation was wrong.
2D physics engine https://github.com/mechatronic3000/fzxNGN
Untitled Rouge-like https://github.com/mechatronic3000/Untitled-Rougelike
QB Pool https://github.com/mechatronic3000/QBPool
Untitled Rouge-like https://github.com/mechatronic3000/Untitled-Rougelike
QB Pool https://github.com/mechatronic3000/QBPool