阅读背景:

初始化本地静态函数-对象线程安全吗?

来源:互联网 

The following two functions produce different assemblies, which tells me they're different. Can someone tell me in what way they are different? And is the function local static variable initialization in func2 thread-safe or not? If the answer depends on the compiler, I'd like to know how would the most common compilers behave with func2.The following two functions produce different a




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

分享到: