You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, we could pass functor that will assing new value to the newly inserted item but there is time window between item insertion and functor execution when another thread could find just inserted item with empty second and all it can do is to spin until second will be initialized.
Why not pass V into update() ?
Am I missing something ?
The text was updated successfully, but these errors were encountered:
hvlad
added a commit
to hvlad/libcds
that referenced
this issue
Aug 9, 2021
Is there any strong reason to not accept Value at update() ?
For example, MichaelKVList::insert() is declared as
while there is no update() with V argument.
Yes, we could pass functor that will assing new value to the newly inserted item but there is time window between item insertion and functor execution when another thread could find just inserted item with empty
second
and all it can do is to spin untilsecond
will be initialized.Why not pass V into update() ?
Am I missing something ?
The text was updated successfully, but these errors were encountered: