Skip to content

Use atomic set-and-check to update OptTimestamps if none.

Nick Mathewson requested to merge nickm/arti:update_if_zero into main

This fixes a tiny race condition in the previous code, where we checked whether an OptTimestamp is None a bit before we set it. Since std::atomic gives us compare_exchange, we might as well use it.

Merge request reports

Loading