Are there ways of getting around the cost of atomic operations?

后端 未结 0 1510
孤街浪徒
孤街浪徒 2021-02-15 10:31

I have a counter that\'s currently an atomic u32 that\'s used in a hot part of my code, and it\'s generally just incremented by 1. Very occasionally, it will be read from a very

相关标签:
回答
  • 消灭零回复
提交回复
热议问题