# Use std::mutex instead of CRITICAL\_SECTION in FCriticalSection on Windows platforms?

**URL:** <https://forums.unrealengine.com/t/use-std-mutex-instead-of-critical-section-in-fcriticalsection-on-windows-platforms/735232>\
**Category:** Feedback & Requests\
**Tags:** windows, multithreading, unreal-engine, CPP\
**Created:** [December 24, 2022, 8:12pm UTC](https://forums.unrealengine.com/t/use-std-mutex-instead-of-critical-section-in-fcriticalsection-on-windows-platforms/735232 "2022-12-24T20:12:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FLake2022](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FLake2022](https://forums.unrealengine.com/u/FLake2022)\
**Post date:** [December 24, 2022, 8:12pm UTC](https://forums.unrealengine.com/t/use-std-mutex-instead-of-critical-section-in-fcriticalsection-on-windows-platforms/735232/1 "2022-12-24T20:12:50Z")

</div>

Thanks for the Unreal team do these incredible works!

Just a little advise:  
Can we change the implementation of FCriticalSection on Windows platforms?

Since std::mutex is faster than WIN32’s CRITICAL\_SECTION in latest MSVC,  
it’s time to move on the step, right?

ref: [c++ - Why did CRITICAL\_SECTION performance become worse on Win8 - Stack Overflow](https://stackoverflow.com/questions/52170665/why-did-critical-section-performance-become-worse-on-win8) =\> I try this on my Win11, i7 machine and get the same result: std::mutex faster than critical section.

Thanks.
