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

ASThread: Remove Locker, Unlocker, and SharedMutex #1213

Merged
merged 5 commits into from
Nov 5, 2018

Conversation

Adlai-Holler
Copy link
Member

@Adlai-Holler Adlai-Holler commented Nov 5, 2018

Resolves: https://github.com/TextureGroup/Texture/projects/2#card-14537113

Important note: As you skim this diff, it may look like MutexLocker was replaced with UniqueLock. It wasn't. However, in instances where we want to unlock mid-scope, I replaced with UniqueLock to make that possible.

  • Remove ASDN::Locker, Unlocker, and SharedLocker, along with their various aliases such as MutexLocker
  • Redefine ASDN::MutexLocker as std::lock_guardASDN::Mutex
  • Add typedef ASDN::UniqueLock std::unique_lock<ASDN::Mutex> for when we want to unlock mid-scope.
  • Replace SharedMutex, SharedLocker etc with things like static auto *globalLock = new ASDN::Mutex.

@TextureGroup TextureGroup deleted a comment Nov 5, 2018
@Adlai-Holler Adlai-Holler mentioned this pull request Nov 5, 2018
@TextureGroup TextureGroup deleted a comment Nov 5, 2018
@TextureGroup TextureGroup deleted a comment Nov 5, 2018
@Adlai-Holler Adlai-Holler merged commit 5c9815f into master Nov 5, 2018
@Adlai-Holler Adlai-Holler deleted the AHCutDownLockingCode branch November 5, 2018 21:26
mikezucc pushed a commit to mikezucc/Texture that referenced this pull request Nov 7, 2018
* ASThread: Remove Locker, Unlocker, and SharedMutex

* Remove extra line

* Kick the CI

* Move C++ down

* Fix thing
ernestmama added a commit to ernestmama/Texture that referenced this pull request Nov 14, 2018
ernestmama added a commit to ernestmama/Texture that referenced this pull request Nov 14, 2018
nguyenhuy pushed a commit that referenced this pull request Nov 14, 2018
* Revert "ASThread: Remove Locker, Unlocker, and SharedMutex (#1213)"

This reverts commit 5c9815f.

* Revert "Assert node did load before did enter visible way 1 (#886)"
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.

None yet

2 participants