-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make SpinLock class smaller (#99618)
- During other work, I noticed that the SpinLock class's `m_Initialized` field was only useful for DEBUG builds, and for ensuring that m_lock was set to 0 sometime after construction of the SpinLock - Set `m_lock` to 0 in the constructor instead - Move all handling of `m_initialized` to withing a DEBUG block
- Loading branch information
1 parent
e4fceb3
commit fde0fd3
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
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
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