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

Method TryCreateToken

Source/PCGExtendedToolkit/Private/PCGExMT.cpp:371–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369 }
370
371 TWeakPtr<FAsyncToken> FTaskManager::TryCreateToken(const FName& TokenName)
372 {
373 FWriteScopeLock WriteGroupsLock(TokensLock);
374
375 if (!IsAvailable()) { return nullptr; }
376
377 PCGEX_MAKE_SHARED(Token, FAsyncToken, SharedThis(this), TokenName)
378 return Tokens.Add_GetRef(Token);
379 }
380
381 void FTaskManager::DeferredReset(FSimpleCallback&& Callback)
382 {

Callers 5

ProcessMethod · 0.80
StartComponentSearchMethod · 0.80
ProcessMethod · 0.80
PCGEX_ON_STATEFunction · 0.80
ProcessMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected