Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Freestanding stdatomic.h headers in GCC appear to be unsuitable #13

Closed
PatchMixolydic opened this issue Mar 20, 2020 · 1 comment
Closed
Labels
bug Something isn't working libc A bug related to the C standard library and extensions

Comments

@PatchMixolydic
Copy link
Owner

spinlockMutex decompiles to contain xchg and then test

This function, which uses atomic_flag_test_and_set, uses xchg and test. Presumably, an atomic operation would be preferable to avoid races, like lock cmpxchg.

@PatchMixolydic PatchMixolydic added bug Something isn't working libc A bug related to the C standard library and extensions labels Mar 20, 2020
@PatchMixolydic
Copy link
Owner Author

Spinel was since rewritten in Rust, so this is no longer an issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working libc A bug related to the C standard library and extensions
Projects
None yet
Development

No branches or pull requests

1 participant