Skip to content

Add support for C++ std::thread and derivatives #217

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Mefiresu
Copy link

@Mefiresu Mefiresu commented Jun 1, 2025

Implements dkp's gthread interface using LWP functions.
With this, std::{thread,mutex,recursive_mutex,condition_variable} are now supported.

Note that some parts of the gthread interface are not yet implemented (like gthread_key_*), but it doesn't seem to impact functionality.

Implements dkp's gthread interface using LWP functions.
With this, std::{thread,mutex,recursive_mutex,condition_variable} are
now supported.
@Mefiresu
Copy link
Author

Mefiresu commented Jun 3, 2025

Force pushed to add __gthread_once implementation required for some static constructor initializations (heavily based on WUT).
Verified to be working correctly by porting fheroes2 + some manual tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant