Skip to content
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

Work around ThreadPool error when targeting HashLink in Haxe 4.0-4.1. #1852

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

player-03
Copy link
Contributor

Fixes #1851, at least for Haxe 4.0.5. I couldn't reproduce the issue in Haxe 4.1.5, possibly because I'm using Linux rather than Mac. But since it pointed to the same two lines, I think it's safe to assume it's the same bug.

This appears to have been a bug in Haxe 4.0-4.1's HashLink target. `value++` failed, but `value = value + 1` was fine.
@joshtynjala
Copy link
Member

I confirm that this fixes the issue for both Haxe 4.0.5 and 4.1.5 on my machine.

@player-03 player-03 merged commit 5b4fc0c into openfl:develop Oct 22, 2024
12 checks passed
@player-03 player-03 deleted the HashLink_Tls_workaround branch October 22, 2024 18:31
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.

ThreadPool problems reported by Haxe 4.0 and 4.1 when targeting HashLink
2 participants