Refactor to use LockedWrapper guard
This commit is contained in:
@@ -45,7 +45,7 @@ public:
|
||||
TSubclassOf<AActor> ClassTangibleActor;
|
||||
|
||||
// Transfer console output from the Luprex engine to unreal.
|
||||
void HandleLuprexConsoleOutput();
|
||||
void HandleLuprexConsoleOutput(FLockedWrapper &w);
|
||||
|
||||
UPROPERTY()
|
||||
FTangibleManager TangibleManager;
|
||||
@@ -65,11 +65,9 @@ public:
|
||||
// to exit.
|
||||
FEvent* ThreadEvent;
|
||||
|
||||
// This critical section guards the use of the EngineWrapper.
|
||||
FCriticalSection LuprexMutex;
|
||||
|
||||
// The Luprex wrapper and engine. MUST CLAIM LuprexMutex.
|
||||
EngineWrapper Luprex;
|
||||
// The Luprex EngineWrapper, with a Mutex to protect it.
|
||||
// To access it, construct a FLockedWrapper.
|
||||
FLockableWrapper LockableWrapper;
|
||||
|
||||
// Luprex socket system. Aside from construction, only touched by Luprex thread.
|
||||
TUniquePtr<FLpxSockets> Sockets;
|
||||
|
||||
Reference in New Issue
Block a user