Skip to content

feat: Add support for value freezing to avoid changing shared values#85

Merged
mitsuhiko merged 7 commits intomasterfrom
feature/freezing
Nov 14, 2019
Merged

feat: Add support for value freezing to avoid changing shared values#85
mitsuhiko merged 7 commits intomasterfrom
feature/freezing

Conversation

@mitsuhiko
Copy link
Copy Markdown
Contributor

@mitsuhiko mitsuhiko commented Nov 13, 2019

This adds support for freezing values (makes them immutable). This should help avoid situations
where code wants to modify shared values in the event struct.

This also adds an internal mutex to the value so we don't crash on concurrent modifications.

@mitsuhiko mitsuhiko requested a review from jan-auer November 13, 2019 21:19
@mitsuhiko mitsuhiko merged commit 6a72813 into master Nov 14, 2019
@mitsuhiko mitsuhiko deleted the feature/freezing branch November 14, 2019 10:12
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.

2 participants