The minimum queue depth shows how shallow the measurement object pool got.
最小队列深度显示了度量对象池有多浅。
To retrieve an object from the object pool, provide a scope type and a scope key.
为了从对象池获取对象,需要提供一个范围类型和一个范围键。
The object pool needs to keep track of the state of each object and to be thread safe.
对象池需要跟踪每个对象的状态,而且应该是线程安全的。
The resource manager USES the object pool provided by the container to manage system resources.
资源管理器会使用容器提供的对象池来管理系统资源。
I'll use the term object manager in this article to distinguish the framework from a conventional object pool.
在本文中,我将用对象管理器(object manager)这个词表示这个框架,以便区别于传统的对象池。
To accomplish this effect, resolve these two issues: First, modify the object pool so that it understands the concept of scope.
为了实现这种效果,要解决两个问题:首先,修改对象池,让它理解范围的概念。
Much like an object pool, an object manager is responsible for getting objects from a pool and returning objects back to the pool.
与对象池一样,对象管理器也负责从池中获取对象和把对象返回池中。
When using an object pool, the allocation, initialization, collection, and finalization only occur once, reducing both the memory usage and the processing time that is required.
在使用对象池时,分配、初始化、回收和终结只发生一次,从而减少了内存使用和所需的处理时间。
Object pool interface — an object-aware interface that calls the constructor and destructors appropriately during object creation and deletion, respectively.
对象池接口——有对象意识的接口,在对象创建和删除过程中分别相应地调用构造函数和析构函数。
The object-pool interface needs the type information, because constructors are called.
object - pool接口需要类型信息,因为要调用构造函数。
The object-pool interface needs the type information, because constructors are called.
object - pool接口需要类型信息,因为要调用构造函数。
应用推荐