-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prop: copy initial values and store as pointers internally
Without using pointers internally, accepting structs using Store wouldn't work properly. This requires making a copy of the initial values (which were documented already as "initial" values, but were indeed just reused by the existing code). But using them directly was anyway not possible since access not going through Get or GetMust could have led to race conditions anyway. Fixes #298.
- Loading branch information
Showing
2 changed files
with
75 additions
and
15 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