-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use the standard thread library for the lua interpreter #362
base: main
Are you sure you want to change the base?
Conversation
Working on the failed test case, I think there is a bug in the core that is worked around with a TerminateThread,.. |
@TheGondos did you see my comments in your _itoa PR? |
Yes, I can work around the 32bit warning but I think the root cause is using an INT_PTR to represent either an ExternMFD pointer or an MFD Id. Maybe it would be better to use a std::variant instead (I replaced it with a struct containing a union on my linux branch) |
Sorry, since that PR was accepted I wasn't sure if you saw my comments. Let's continue in there. |
Since we are now using C++20, I took the liberty to switch to semaphores since they are more appropriate. |
All those late nights I've spent updating the code for c++20 are starting to pay off already 😅 |
BTW, I tend to rebase/squash before merging because I find it easier to revert/cherry-pick if needed later. Tell me if it's not something you want. |
Nah it's fine, I generally prefer to do that anyway unless the history on the branch is significant somehow |
Added a minor prototype change. |
https://cmake.org/cmake/help/latest/manual/ctest.1.html#cmdoption-ctest-repeat
|
This PR replaces Windows specific thread handling with standard C++ constructs in the lua interpreter/console/MFD.
I've tested it on the DG atmospheric autopilot and solar system scenarios but I'd prefer to have some more feedback.
Is there some kind of stress test for the lua interpreter?