...在 CVI 3.3.1 综合传动装置结构分析中提供了三种数据保护的机制:线程锁(threadlock)、线程安全变量(thread safe variables)和线程安全队列。
基于32个网页-相关网页
因为根据设计它是线程安全的,创建它之后可以把它缓存在一个公共静态最终变量中,或者包装在单实例模式中以供以后访问。
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.
我们没有定义任何会引起线程安全问题的变量。
We don't declare any variables that might cause thread-safety issues.
请注意,readdir不是线程安全的,因为所返回的结构是存储在函数库中的一个静态变量。
Note that readdir is not thread-safe, because the returned structure is a static variable stored in the function library.
应用推荐