kaylil_01 Asked:2020-12-26 18:17:47 +0000 UTC2020-12-26 18:17:47 +0000 UTC 2020-12-26 18:17:47 +0000 UTC 原子方法 Interlocked.Add 772 Interlocked.Add 方法只接受 int 的原因是什么?双重如何干扰原子性? c# 1 个回答 Voted Best Answer CrazyElf 2020-12-26T21:32:56Z2020-12-26T21:32:56Z 问题在于操作系统实现这些结构的低级细节(在操作系统/处理器级别根本没有这些版本的实现)。详细信息可以在网站的英文版上阅读: https ://stackoverflow.com/questions/1400465/why-is-there-no-overload-of-interlocked-add-that-accepts-doubles-as-parameters
问题在于操作系统实现这些结构的低级细节(在操作系统/处理器级别根本没有这些版本的实现)。详细信息可以在网站的英文版上阅读: https ://stackoverflow.com/questions/1400465/why-is-there-no-overload-of-interlocked-add-that-accepts-doubles-as-parameters