| 177 | } |
| 178 | |
| 179 | void FAsyncMultiHandle::StartBackgroundTask(const TSharedPtr<FTask>& InTask) |
| 180 | { |
| 181 | if (!IsAvailable()) { return; } |
| 182 | |
| 183 | if (const TSharedPtr<FAsyncMultiHandle> PinnedRoot = Root.Pin()) |
| 184 | { |
| 185 | // Register to self first |
| 186 | InTask->SetParent(SharedThis(this)); |
| 187 | |
| 188 | // Then push to root |
| 189 | PinnedRoot->StartBackgroundTask(InTask); |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | void FAsyncMultiHandle::StartSynchronousTask(const TSharedPtr<FTask>& InTask) |
| 194 | { |
nothing calls this directly
no test coverage detected