Ark Server API (ASA) - Wiki
|
#include <RemoteConfigIni.h>
Public Member Functions | |
void | Tick () |
bool | StartTask (const TCHAR *InFilename, const TCHAR *RemotePath, FRemoteConfigAsyncIOInfo &InIOInfo, FString *InContents, bool bInIsRead) |
bool | IsFinished (const TCHAR *InFilename) |
bool | AreAllTasksFinished (bool bDoRemoval) |
bool | GetReadData (const TCHAR *InFilename, FRemoteConfigAsyncIOInfo &OutIOInfo) |
Static Public Member Functions | |
static FRemoteConfigAsyncTaskManager * | Get () |
Private Member Functions | |
bool | FindCachedWriteTask (const TCHAR *InFilename, bool bCompareContents, const TCHAR *InContents) |
Private Attributes | |
TMap< FString, FAsyncTask< FRemoteConfigAsyncWorker > * > | PendingTasks |
TArray< FRemoteConfigAsyncCachedWriteTask > | CachedWriteTasks |
FCriticalSection | SynchronizationObject |
Manages async IO tasks for remote config files
Definition at line 118 of file RemoteConfigIni.h.
Returns true if the all tasks in the queue have completed (or, if the queue is empty).
|
private |
Returns true if file exists in the cached task list.
|
static |
Returns a reference to the global FRemoteConfigAsyncTaskManager object.
bool FRemoteConfigAsyncTaskManager::GetReadData | ( | const TCHAR * | InFilename, |
FRemoteConfigAsyncIOInfo & | OutIOInfo ) |
Safely retrieve the read data from the completed async task.
Returns true if the task has completed
bool FRemoteConfigAsyncTaskManager::StartTask | ( | const TCHAR * | InFilename, |
const TCHAR * | RemotePath, | ||
FRemoteConfigAsyncIOInfo & | InIOInfo, | ||
FString * | InContents, | ||
bool | bInIsRead ) |
Add an async IO task to the queue and kick it off.
void FRemoteConfigAsyncTaskManager::Tick | ( | ) |
Handles cached write tasks.
|
private |
List of cached off write tasks waiting for currently pending tasks to complete.
Definition at line 149 of file RemoteConfigIni.h.
|
private |
List of pending async IO operations
Definition at line 146 of file RemoteConfigIni.h.
|
private |
Object used for synchronization via a scoped lock.
Definition at line 152 of file RemoteConfigIni.h.