|
| ObjectType * | Acquire () |
| | Acquire an untracked object from the pool. 更多...
|
| |
| TSharedRef< ObjectType, ESPMode::ThreadSafe > | AcquireShared () |
| | Acquire a shared object from the pool. 更多...
|
| |
| int32 | Num () const |
| | Get the number of objects available in the pool. 更多...
|
| |
| void | Release (ObjectType *Object) |
| | Return the given object to the pool. 更多...
|
| |
| void | Reset (uint32 NumObjects=0) |
| | Reset the pool and reserve a specified number of objects. 更多...
|
| |
|
void | Tick () |
| | Regular tick call
|
| |
|
| TMediaObjectPool (ObjectAllocator *ObjectAllocatorInstance=nullptr) |
| | Default constructor.
|
| |
| | TMediaObjectPool (uint32 NumReserve) |
| | Create and initialize a new instance. 更多...
|
| |
| TSharedRef< ObjectType, ESPMode::ThreadSafe > | ToShared (ObjectType *Object) |
| | Convert an object to a shared pooled object. 更多...
|
| |
template<typename ObjectType, typename ObjectAllocator = TMediaPoolDefaultObjectAllocator<ObjectType>>
class TMediaObjectPool< ObjectType, ObjectAllocator >
Template for media object pools.
Poolable objects are required to implement the IMediaPoolable interface.
- 参数
-
| ObjectType | The type of objects managed by this pool. |
- 待办事项:
- gmp: Make media object pool lock-free
template<typename ObjectType , typename ObjectAllocator = TMediaPoolDefaultObjectAllocator<ObjectType>>
| void TMediaObjectPool< ObjectType, ObjectAllocator >::Release |
( |
ObjectType * |
Object | ) |
|
|
inline |
Return the given object to the pool.
This method can return plain old C++ objects to the pool. Do not use this method with objects acquired via AcquireShared or AcquireUnique, because those are returned automatically.
- 参见
- Acquire