05-27-2024, 09:55 PM
(05-27-2024, 06:26 PM)a740g Wrote: So, write the entire thread callable code in C/C++, avoid any calls to the QB64 runtime, and use shared memory that does not move in memory to exchange data.Yeah pretty much, the reliable option here is to write all the code running in the thread in a different language like C++. You can expose mutexes and lock/unlock functions for them to the QB64 code to protect memory that's being shared.
This approach seems to defeat the purpose of using BASIC. Still, it might be useful in some niche cases.
This gives me some weekend ideas.