79309363

Date: 2024-12-26 11:34:12
Score: 1.5
Natty:
Report link

I've recently run into the same issue and ended up using crossbeam::atomic::AtomicCell. On my x86-64 linux, AtomicCell<Instant> has the same size as Instant meaning it is lock-free, so no mutex overhead.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Mikhail Vasilyev