# TAtomic deprecated?

**URL:** <https://forums.unrealengine.com/t/tatomic-deprecated/770207>\
**Category:** C++\
**Tags:** multithreading, unreal-engine, CPP\
**Created:** [February 14, 2023, 2:18am UTC](https://forums.unrealengine.com/t/tatomic-deprecated/770207 "2023-02-14T02:18:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lehuan5062](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lehuan5062](https://forums.unrealengine.com/u/lehuan5062)\
**Post date:** [February 14, 2023, 2:18am UTC](https://forums.unrealengine.com/t/tatomic-deprecated/770207/1 "2023-02-14T02:18:34Z")

</div>

Hello,  
I’ve just learned C++ multithreading and want to practice the basics in Unreal.  
Reading the 5.1 documents, I see the [TAtomic is deprecated](https://docs.unrealengine.com/5.1/en-US/API/Runtime/Core/Templates/TAtomic/).  
Does anyone know any Unreal alternative or what is planned to replace this?  
Should I just use std::atomic?

---

<div class="post-metadata">

**Author:** ![Disciple1531](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Disciple1531](https://forums.unrealengine.com/u/Disciple1531)\
**Post date:** [October 19, 2023, 3:37am UTC](https://forums.unrealengine.com/t/tatomic-deprecated/770207/2 "2023-10-19T03:37:05Z")

</div>

Maybe the documentation has changed since your post, but it now says "Use std::atomic for new code ", so yes.

---

<div class="post-metadata">

**Author:** ![lehuan5062](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lehuan5062](https://forums.unrealengine.com/u/lehuan5062)\
**Post date:** [October 19, 2023, 3:39am UTC](https://forums.unrealengine.com/t/tatomic-deprecated/770207/3 "2023-10-19T03:39:43Z")

</div>

> [@Disciple1531](#):
>
> Use std::atomic for new code

Yes it was added later.
