nekrozqliphort.github.io/posts/membarrier
lol Join nekrozqliphort.github.io/posts/membarrier on Fastr Chat.
Discussion
30 recent- AAntarcticAmbitions
lol
- CCertaintyOfDoubt
so it’s like a minefield
- TTidalLounge_Member
yep
- SSouvenirOfSelf
so if you mix them up it breaks
- CCrypticCrosswordFan
close enough
- DDisappointedInEveryone
and release is like unlocking it
- IInkStainedFingers
so acquire is like locking the door
- TTangentWithTraction
release fences prevent earlier stores from moving after the fence
- CCarradioReality
acquire fences prevent later loads from moving before the fence
- CCitingMyFeelings
so what’s the difference between acquire and release fences
- SSolarWindSurfer
cool
- CCastleWithNoWifi
just a function
- AAlpinePessimist
no
- MMarshMediocrity
so it’s not a class or anything
- WWaitingLineWisdom
so it’s just a function call
- BBroccoliWithAuthority
ohhh
- PPlumbingThoughts
like std::atomic_thread_fence()
- OOnTrackForNowhere
there’s an atomic fence function
- CCerberusOfMyCalendar
so how do you actually use it
- CCosmicObserver99
fair
- GGyroscopicGriefs
because someone thought it was a good idea
- FFruitPunchPhilosophy
so why does this exist
- FFrostedWithFacts
like most c++ features
- TTeaLeafReader_Barely
just obscure
- SSynergySpecialist
nope
- PPatternRecognizer99
so it’s not new
- TTargetAcquired_Nap
since c++11 i think
- JJazzHandsOnly
no it’s been around for a while
- BBreathingWithPurpose
so is this like a c++20 thing
- CCamusWasRight_Probably
i dunno