![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <EventPool.h>
Public Member Functions | |
| ~TEventPool () | |
| FEvent * | GetEventFromPool () |
| void | ReturnToPool (FEvent *Event) |
| void | EmptyPool () |
| FEvent * | GetRawEvent () |
| void | ReturnRawEvent (FEvent *Event) |
Template class for event pools.
Events are expensive to create on most platforms. This pool allows for efficient recycling of event instances that are no longer used. Events can have their signaled state reset automatically or manually. The PoolType template parameter specifies which type of events the pool managers.
| PoolType | Specifies the type of pool. |
|
inline |
|
inline |
|
inline |
|
inline |
Gets a "raw" event (as opposite to FSafeRecyclableEvent handle returned by GetEventFromPool) from the pool or creates one if necessary.
|
inline |
Returns a "raw" event to the pool.
|
inline |