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

Use proper atomics and ref counting #807

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Apr 18, 2024

  1. Use proper atomics and ref counting

    Prefer __atomic_compare_exchange_n over __sync_bool_compare_and_swap.
    
    I chose weak because we are looping and reading the value of old_value constantly anyway, so it would be better to have it weak.
    
    Otherwise, it is equivalent to what it was before.
    AreaZR committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    d11c9c7 View commit details
    Browse the repository at this point in the history