QuantumSavory.jl icon indicating copy to clipboard operation
QuantumSavory.jl copied to clipboard

an atomic tag-update function

Open Krastanov opened this issue 2 years ago • 1 comments

Frequently we do

slot, tag = query(...)
pop!(slot, tag)
tag!(slot, tag)

This is fine as long as the pop! and tag! are next to each other, but it is prone to race conditions if there is a @yield between them. An atomic version of this operation would be very valuable.

Krastanov avatar Nov 20 '23 01:11 Krastanov

we have querydelete! in #81 , but there is no an atomic queryupdate! function yet

Krastanov avatar Dec 30 '23 06:12 Krastanov