Navigation
API > API/Plugins > API/Plugins/TmvMedia
Pool for worker thread context objects that can be reused within the same stream (i.e. no options changes) to the next when available.
| Name | TTmvMediaSharedObjectPool |
| Type | class |
| Header File | /Engine/Plugins/Media/TmvMedia/Source/TmvMedia/Public/Utils/TTmvMediaSharedObjectPool.h |
| Include Path | #include "Utils/TTmvMediaSharedObjectPool.h" |
Syntax
template<class ObjectType>
class TTmvMediaSharedObjectPool : public TSharedFromThis< TTmvMediaSharedObjectPool< ObjectType > >
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → TTmvMediaSharedObjectPool
Structs
| Name | Remarks |
|---|---|
| FHandle | Auto clean up handle, puts the context back in the pool. |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FreeObjects | TArray< TSharedPtr< ObjectType > > | Utils/TTmvMediaSharedObjectPool.h | ||
| FreeObjectsMutex | UE::FMutex | Utils/TTmvMediaSharedObjectPool.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FHandle Acquire
(
TFunction< TSharedPtr< ObjectType >()> InAllocatorFunc |
Acquire an available object from the pool or create a new one. | Utils/TTmvMediaSharedObjectPool.h | |
void Release
(
const TSharedPtr< ObjectType >& InObject |
Returns unused objects to the pool. | Utils/TTmvMediaSharedObjectPool.h |