Live data from Hacker News

Viewing profile — spinlocker

spinlocker

HN member
Joined
Wed, Jul 07, 2021, 7:18 AM UTC
HN karma
2
Public activity
4 items

About spinlocker

No profile information was provided.

Recent public activity

  1. comment
    Comment #27766332

    Looks like in C++ memory_order_acq_rel is treated like memory_order_acquire when it's a load and memory_order_release when it's a store. I would argue that this isn't really a diff…

  2. comment
    Comment #27766244

    I believe your claim is correct: https://news.ycombinator.com/item?id=27758461 .

  3. comment
    Comment #27758461

    On the page you linked panics are only mentioned for load and store and the code below seems to work just fine? let x = atomic::AtomicU32::new(0); x.compare_exchange_weak( 0, 1, at…

  4. comment
    Comment #27758320

    > I'll also note that using AcqRel semantics is not provided by the Rust version of compare_exchange_weak (perhaps a nit on TFA's assertion that Rust adopts the C++ memory model wh…