Navigation
API > API/Runtime > API/Runtime/MassEntity > API/Runtime/MassEntity/FMassCommandBuffer
Description
Updates the OwnerThreadId which indicates that the given command buffer instance is being used in a different thread now. Use this with extreme caution, it's not a tool to be used every time we get "Commands can be pushed only in the same thread where the command buffer was created." error. It's meant to be used when there's a possibility the code owning the buffer has been moved to another thread (like in ParallelFor).
| Name | ForceUpdateCurrentThreadID |
| Type | function |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassCommandBuffer.h |
| Include Path | #include "MassCommandBuffer.h" |
| Source | /Engine/Source/Runtime/MassEntity/Private/MassCommandBuffer.cpp |
void ForceUpdateCurrentThreadID()