Closed PSoftwareOficial closed 1 week ago
Hello! olc::PixelGameEngine has no issue with std::thread usage - I use it myself frequently. Line 104 of PGE is a comment? I'll also add that I dont see any thread.joinable() which is usually a red flag with thread code. It would appear you are assigning a second thread to a thread handle that alreday has a thread associated with it.
Hi, I will have to ask for forgiveness. Apparently, my level of C++ is not good basic foundation skills, but barely not a complete beginner. After a more thorough investigation into multithreading, everything works perfectly.
Please do not hesitate to call me a moron. Is multithreading allowed? I found no issue which referenced this concept.
If I apply the this code:
The first time I press "X", it works. The second time it crashes and references this code:
olcPixelGameEngine.h line 104
If relevant, this is the python script. It just gets some data from google sheets. Used for another project.