阅读背景:

原子实际上对合成原语意味着什么吗?

来源:互联网 

In Android, I could safely access and modify primitive types from different threads. I used this to share data between my OpenGL draw loop and user settings that were modified in the main thread Android UI. By storing each setting in a primitive type and making each independent of the others' values, it was thread-safe to modify all these variables without using locks or the synchronize keyword.In Android, I could safely access and modify pr




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

分享到: