You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
re-deprecated FPlatformProcess::CreateSynchEvent(), now on all platforms. Replaced FEvent* by FEventRef where it made sense. Deprecated FEvent::Create() as another method to bypass the event pool
#rb steve.robb [CL 16163267 by Andriy Tylychko in ue5-main branch]
This commit is contained in:
@@ -113,7 +113,7 @@ class FXGEControllerModule : public IXGEController
|
||||
TFuture<void> WriteOutThreadFuture;
|
||||
TFuture<void> ReadBackThreadFuture;
|
||||
|
||||
FEvent* WriteOutThreadEvent;
|
||||
FEventRef WriteOutThreadEvent;
|
||||
|
||||
// We need two pipes, as the named pipe API does not support simultaneous read/write on two threads.
|
||||
FPlatformNamedPipe InputNamedPipe, OutputNamedPipe;
|
||||
@@ -160,18 +160,11 @@ FXGEControllerModule::FXGEControllerModule()
|
||||
, TasksCS(new FCriticalSection)
|
||||
, bShutdown(false)
|
||||
, bRestartWorker(false)
|
||||
, WriteOutThreadEvent(FPlatformProcess::CreateSynchEvent(false))
|
||||
, LastEventTime(0)
|
||||
{}
|
||||
|
||||
FXGEControllerModule::~FXGEControllerModule()
|
||||
{
|
||||
if (WriteOutThreadEvent)
|
||||
{
|
||||
delete WriteOutThreadEvent;
|
||||
WriteOutThreadEvent = nullptr;
|
||||
}
|
||||
|
||||
if (TasksCS)
|
||||
{
|
||||
delete TasksCS;
|
||||
|
||||
Reference in New Issue
Block a user