-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Backport of all the multi-threading modernization (3.2) #45618
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RandomShaper
force-pushed
the
modernize_mt_3.2
branch
8 times, most recently
from
February 1, 2021 17:31
2840b5a
to
869b4b3
Compare
RandomShaper
requested review from
hpvb,
JFonS,
neikeq and
vnen
as code owners
February 1, 2021 20:20
RandomShaper
force-pushed
the
modernize_mt_3.2
branch
3 times, most recently
from
February 4, 2021 11:54
e499769
to
55f34a1
Compare
RandomShaper
force-pushed
the
modernize_mt_3.2
branch
from
February 10, 2021 19:36
55f34a1
to
f10f4ae
Compare
- Based on C++14's `shared_time_mutex` - No more need to allocate-deallocate or check for null - No pointer anymore, just a member variable - Platform-specific implementations no longer needed - Simpler for `NO_THREADS`
RandomShaper
force-pushed
the
modernize_mt_3.2
branch
from
February 18, 2021 10:47
f10f4ae
to
ab5ab3c
Compare
This was referenced Mar 10, 2021
akien-mga
added a commit
to akien-mga/godot
that referenced
this pull request
Mar 11, 2021
Was a regression from godotengine#45618. Fixes godotengine#46907.
This was referenced Mar 11, 2021
akien-mga
added a commit
that referenced
this pull request
Apr 6, 2021
[3.x] Android: Fix access to JavaVM for threads after #45618
lekoder
pushed a commit
to KoderaSoftwareUnlimited/godot
that referenced
this pull request
Apr 24, 2021
Was a regression from godotengine#45618. Fixes godotengine#46907.
akien-mga
added a commit
to akien-mga/godot
that referenced
this pull request
Apr 27, 2021
The min requirement was upped by godotengine#45618 to have proper support for C++14. Related to godotengine#48222.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This a backport of all the multi-threading modernization and enhancements that exist currently for Godot 4.0.
It contains what was already in 4.0 before I started this modernization effort (like
Semaphore
), plus everything else I've done for that version:Thread
,Mutex
, atomics, etc.Benefits:
volatile
that compilers are allowed to stop implementing.UPDATE: I've tested it myself with the TPS demo (going through all the workflow at the editor -importing everything, etc.) and a few other demo projects on Windows and Android.
This code is generously donated by IMVU.