Files
UnrealEngineUWP/Engine/Source/Programs/UnrealTraceServer/src/StoreService.h
johan berg 03b67cd765 Change method of checking for sponsor process lifetime
* Move sponsor process check inside store and use asio tasks to check, instead of launching separate thread on Linux/Mac. There was some strange interaction between standalone pthreads and asio.
* How checking is done is now platform independent, but some platform specific code is needed to trigger exit events.

#jira UE-204157
#rb ionut.matasaru

[CL 31126135 by johan berg in ue5-main branch]
2024-02-02 10:53:59 -05:00

29 lines
785 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Foundation.h"
class FStoreSettings;
////////////////////////////////////////////////////////////////////////////////
class FStoreService
{
public:
~FStoreService() = default;
static FStoreService* Create(FStoreSettings* Desc, struct FInstanceInfo* InstanceInfo);
void operator delete (void* Addr);
uint32 GetPort() const;
uint32 GetRecorderPort() const;
bool ShutdownIfNoConnections();
private:
FStoreService() = default;
FStoreService(const FStoreService&) = delete;
FStoreService(const FStoreService&&) = delete;
void operator = (const FStoreService&) = delete;
void operator = (const FStoreService&&) = delete;
};
/* vim: set noexpandtab : */