MCPcopy Create free account
hub / github.com/PCGEx/PCGExtendedToolkit / TryCreateTaskGroup

Method TryCreateTaskGroup

Source/PCGExtendedToolkit/Private/PCGExMT.cpp:358–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356 }
357
358 TSharedPtr<FTaskGroup> FTaskManager::TryCreateTaskGroup(const FName& InName)
359 {
360 FWriteScopeLock WriteGroupsLock(GroupsLock);
361
362 if (!IsAvailable()) { return nullptr; }
363
364 PCGEX_MAKE_SHARED(NewGroup, FTaskGroup, bForceSync, InName)
365 NewGroup->SetRoot(SharedThis(this), -1);
366 NewGroup->Start(); // So its state can be updated properly
367
368 return Groups.Add_GetRef(NewGroup);
369 }
370
371 TWeakPtr<FAsyncToken> FTaskManager::TryCreateToken(const FName& TokenName)
372 {

Callers

nothing calls this directly

Calls 2

SetRootMethod · 0.80
StartMethod · 0.45

Tested by

no test coverage detected