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:
Andriy Tylychko
2021-04-29 18:52:48 -04:00
parent 4a623d1716
commit 9f1cf3eabf
15 changed files with 24 additions and 55 deletions

View File

@@ -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;