# Can thread-safety of a function be checked

**URL:** <https://forums.unrealengine.com/t/can-thread-safety-of-a-function-be-checked/379055>\
**Category:** Blueprint\
**Tags:** threading, unreal-engine, crash, Blueprint, question\
**Created:** [December 12, 2016, 10:38am UTC](https://forums.unrealengine.com/t/can-thread-safety-of-a-function-be-checked/379055 "2016-12-12T10:38:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![plangton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@plangton](https://forums.unrealengine.com/u/plangton)\
**Post date:** [December 12, 2016, 10:38am UTC](https://forums.unrealengine.com/t/can-thread-safety-of-a-function-be-checked/379055/1 "2016-12-12T10:38:36Z")

</div>

Hi,

Is there a way that I can check if a function is thread safe regarding creating UObjects ?  
E.g : creating blueprints crashes in a thread due to the following assertion failing  
check(IsInGameThread() || HasAnyFlags(RF\_ClassDefaultObject|RF\_ArchetypeObject) || IsPostLoadThreadSafe() || IsA(UClass::StaticClass()))

But I was wondering to know if there’s a way to see if a function is creating blueprints or not. Or if be executed on a thread will cause crash or not. because the assertion cannot be disabled
