You should also remember that static classes that preserve state between method calls should be made thread safe by default.
您还应该记得,在方法调用之间保留状态的静态类在默认情况下应该是线程安全的。
Since it is thread safe by design, you might cache it in a public static final variable, or wrap it in a singleton pattern after creation for later access.
因为根据设计它是线程安全的,创建它之后可以把它缓存在一个公共静态最终变量中,或者包装在单实例模式中以供以后访问。
Once the class has been resolved, the original code location is modified in a thread-safe way to access the static field's address directly because that address is then known.
类一旦被解析,就会以一种线程安全的方式修改原始代码位置以便直接访问静态字段的地址,因为此时已获知该地址。
Note that readdir is not thread-safe, because the returned structure is a static variable stored in the function library.
请注意,readdir不是线程安全的,因为所返回的结构是存储在函数库中的一个静态变量。
The strerror() function isn't necessarily thread-safe; for unknown values, it formats an error message in a static buffer and returns a pointer to that buffer.
strerror()函数并没有必要是线程安全的;对于未知值,该函数在静态缓冲区中设置错误消息的格式并将指针返回到该缓冲区。
This assumption, though safe for various static analyses for compiler optimizations, could spell doom for an anti-virus technology by increasing the time and space costs of the analyses.
这个假定,虽然对编译器最优化使用的各种静态分析来说是安全的,但是由于增加了时间和空间的代价,会致反病毒技术于不利处境。
The stability analysis of static and dynamic state of the whole mechanism is conducted to estimate the equipment, which can ensure the safe and stability of operation of the equipment.
从静态和动态两方面对抛石机的稳定性进行评价,以保证整机作业和运行的安全。
Local static pointer variable is not thread safe?
静态局部变量的指针不是线程安全的?
Design method based on static strength analysis is safe enough and applicable.
按静强度进行扭杆设计是安全的和合适的。
Thee joy of a man, is nothing more than the years static good, earthly safe.
一个人的喜悦,无非是岁月静好,现世安稳。
This article offers some measures for ensuring a safe loading of landing stages after testing and analyzing the dynamic and static stress of a sample landing stage.
通过对一实际钢栈桥动、静态应力的测试和分析,提出了保证栈桥安全承载的措施。
So, no, use of your static instance is not guaranteed to be thread safe without locking.
没有,利用你的静态实例是没有锁定不能保证线程安全。
The difference expansion of the steam turbine reflects the gap change between the dynamic and static parts of the turbine, which is one of the important parameters to protect its safe operation.
汽轮机差胀反映出汽轮机动静部分的间隙变化,是保护汽轮机安全运行的重要参数之一。
The parallel robot's force feeling static model and related issues can be used to judge if the links are safe in any cases.
研究并联机器人力感觉静力学模型及相关问题,判断一定负载下每个连杆分支是否安全。
It is safe to suppress a warning from this rule if you are developing an application and therefore have full control over access to the type that contains the static field.
如果您正在开发应用程序,并因此对包含静态字段的类型具有完全访问权限,则可以安全地禁止显示此规则发出的警告。
He is the pearl, the tides, clam no static shock safe haven in place.
他海滨无珠者,潮汐震撼,蚌无安身静存之地也。
A static instance of an object is not thread safe.
对象的静态实例不是线程安全的。
Static fields that are neither constants nor read-only are not thread-safe.
不是常数也不是只读字段的静态字段不是线程安全的。
It is also shown that the nonlinear static procedure gives a safe estimation of the inelastic seismic response statistically for regular RC frames with good numerical stability.
分析研究表明,采用本文建议的侧力模式进行推覆分析,可在统计意义上可对钢筋混凝土规则框架结构的抗震能力作出偏于安全的估计。
A double flexible metallic O-Ring seat provides a (1) static and (2) dynamic seal and assures compliance to fire-safe specifications.
双重柔性金属O形环阀座具有静止和动态密封性能,确保符合防火规则要求。
The bag filter at top is made from anti-static special fiber. The operation is safe.
顶置布袋过滤器为抗静电特种纤维,操作安全。
The bag filter at top is made from anti-static special fiber. The operation is safe.
顶置布袋过滤器为抗静电特种纤维,操作安全。
应用推荐