针对位域成员的读写操作并不保证是原子操作,这依赖于目标机器和编译器。
如果要保证线程安全,需要程序员自己做额外的措施。
No comments yet.
Sign in to comment and like
No comments yet.