Skip to content

Conversation

@Vekhir
Copy link
Contributor

@Vekhir Vekhir commented Aug 14, 2024

volatile is intended for hardware interaction, where changes might not be obvious from the given code, disabling certain compiler features.
The intended use is atomic operations, so use that instead.

There are other uses of volatile which probably mean to be atomic, but they are mostly in the recording section which I can't really test, don't want to test, and since they don't create warnings should probably be left alone.

Resolves warning 5 of #1046

volatile is intended for hardware interaction, where changes might
not be obvious from the given code, disabling certain compiler
features.
The intended use is atomic operations, so use that instead.
@Vekhir Vekhir force-pushed the atomic-for-thread-safety branch from ab17733 to 2e7c722 Compare February 12, 2025 15:33
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.

1 participant