Online Async Task Manager in Unreal Engine

Words: 90

Introduction

FOnlineAsyncTaskManager is the foundation for asynchronous operations in every online subsystem.

The task manager runs on its own thread and manages both a serial queue and a parallel queue of FOnlineAsyncTasks.

For the serial queue, execution proceeds as follows:

  • Game thread GameThread
    • Initialize Initialize()
  • Online thread OnlineThread
    • Execute Tick() until IsDone()
    • Add the task to the out queue OutQueue
  • Game thread GameThread
    • Finalize Finalize()
    • Trigger callbacks TriggerDelegates()

For the parallel queue, the flow is similar to the above, except the tasks do not wait for previous tasks to complete.

This post is licensed under CC BY-NC-SA 4.0. If it helped, or if you have anything to say, the comment box below is open.
Page views —
Unique visitors —

Loading...