6#include "Math/NumericLimits.h"
7#include "Misc/Timespan.h"
8#include "Templates/Atomic.h"
9#include "Templates/SharedPointer.h"
12
13
14
15
16
17
18
19
25
26
27
28
29
30
31
32
33 UE_DEPRECATED(5.0,
"Direct creation of FEvent is discouraged for performance reasons. Please use FPlatformProcess::GetSynchEventFromPool/ReturnSynchEventToPool.")
34 virtual bool Create(
bool bIsManualReset =
false ) = 0;
37
38
39
40
41
45
46
47
48
52
53
54
55
59
60
61
62
63
64
65
66
67 virtual bool Wait( uint32 WaitTime,
const bool bIgnoreThreadIdleStats =
false ) = 0;
70
71
72
73
80
81
82
83
84
85
86 bool Wait(
const FTimespan& WaitTime,
const bool bIgnoreThreadIdleStats =
false )
88 check(WaitTime.GetTicks() >= 0);
130
131
132
133
161
162
163class FSharedEventRef
final
#define UE_DEPRECATED(Version, Message)
virtual bool Wait(uint32 WaitTime, const bool bIgnoreThreadIdleStats=false)=0
virtual bool Create(bool bIsManualReset=false)=0
TAtomic< uint32 > EventStartCycles
static TAtomic< uint32 > EventUniqueId
virtual bool IsManualReset()=0
bool Wait(const FTimespan &WaitTime, const bool bIgnoreThreadIdleStats=false)
FEvent * operator->() const
FEventRef & operator=(const FEventRef &)=delete
FEventRef(FEventRef &&Other)=delete
FEventRef(EEventMode Mode=EEventMode::AutoReset)
FEventRef & operator=(FEventRef &&Other)=delete
FEventRef(const FEventRef &)=delete
FEvent * operator->() const
FSharedEventRef(EEventMode Mode=EEventMode::AutoReset)
constexpr int64 TicksPerMillisecond