• This instance is used for all messages that are sent into the partition, making members of this class thread safe and providing the opportunity to cache required resources.

    这个实例用于发送分区中的所有消息使这个成员线程安全提供缓存必要资源机会

    youdao

  • Making a class thread safe requires additional care during the implementation and testing of the class.

    使一个线程安全需要实现测试该类时非常小心

    youdao

  • A class that is not thread-safe can often be used safely in a multithreaded program as long as you ensure that instances of that class used by one thread are not used by other threads.

    线程安全通常可以安全地多线程程序使用只要能确保一个线程所用实例其它线程使用。

    youdao

  • Consider a thread-safe container class - a data structure that guarantees thread safety to its clients.

    可以考虑使用线程安全容器—一个保证用户操作线程安全的数据结构

    youdao

  • Sometimes, it is very difficult to make a class thread-safe without compromising its functionality, ease of use, or performance.

    有时,要在不影响功能易用性性能情况下使成为线程安全困难的。

    youdao

  • 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.

    一旦解析,就会一种线程安全的方式修改原始代码位置以便直接访问静态字段地址因为此时已获知该地址。

    youdao

  • The DataMapRepository class presented previously and its base class LinkedHashMap are not thread-safe.

    之前介绍过的datamaprepository及其LinkedHashMap都不是线程安全的。

    youdao

  • To ensure that your implementation is thread-safe, a class that implements this interface should use either the synchronized keyword on the methods or synchronized blocks within the methods.

    为了确保实现线程安全的,实现接口应该方法使用synchronized关键字或者在方法内部使用同步锁。

    youdao

  • Note that all the methods, even get(), need to be synchronized for the class to be thread-safe, to ensure that no updates are lost, and that all threads see the most recent value of the counter.

    注意所有方法甚至需要同步get(),使成为线程安全类,从而确保没有任何更新信息丢失,所有线程看到计数器的最新

    youdao

  • Instead of double-checked locking, use the Initialize-on-demand Holder Class idiom, which provides lazy initialization, is thread-safe, and is faster and less confusing than double-checked locking.

    使用双重检查锁定使用Initialize - on - demandHolderClassidiom提供了迟缓初始化,线程安全的,而且双重检查锁定更快且没那么混乱

    youdao

  • The in-memory representation of a schema is defined as the schema class, which is immutable and therefore thread-safe.

    模式内存中表示定义schema,该类恒定的因此也是线程安全

    youdao

  • It is often the easiest way to render a stateful class thread-safe, or to encapsulate non-thread-safe classes so that they can safely be used in multithreaded environments.

    常常状态描绘成线程安全的,或者封装线程安全使它们能够在多线程环境中安全地使用容易的方式

    youdao

  • Listing 1 shows a non-thread-safe number range class.

    清单1显示了一个非线程安全的数值范围类。

    youdao

  • It may be easier to manage the use of a non-thread-safe class than to try and make the class thread-safe.

    管理线程安全使用试图使类成为线程安全容易些。

    youdao

  • Any access to the data repository is made through a thread-safe wrapper class named RepositoryWrapper.

    数据存储库所有访问通过一个名为RepositoryWrapper的线程安全实现的。

    youdao

  • An effective technique for creating a fully thread-safe class is to merge the synchronization class into the resource class.

    创建完全线程安全有效技术同步类合并资源类中。

    youdao

  • A class whose members are protected from such interruptions is called thread-safe.

    成员受这中断影响的类叫做线程安全类。

    youdao

  • For size and performance reasons, MFC objects are not thread-safe at the object level, only at the class level.

    由于大小效能因素MFC物件物件层级不是安全执行绪只有类别层级上才是。

    youdao

  • For size and performance reasons, MFC objects are not thread-safe at the object level, only at the class level.

    由于大小效能因素MFC物件物件层级不是安全执行绪只有类别层级上才是。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定