阅读背景:

我可以使用互锁操作来更新多个值以避免锁定关键部分/互斥锁吗?

来源:互联网 

I have a multithreaded application (C++) where I need to increment/change a series of values. If I use a series of Interlocked operations, are they considered to be a single atomic operation ? Like in this example:I have a multithreaded application (C++) where




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: