# What is the meaning of "-WaitMutex"?

**URL:** <https://forums.unrealengine.com/t/what-is-the-meaning-of-waitmutex/478579>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, unrealbuildtool, ubt, question\
**Created:** [February 10, 2021, 3:06pm UTC](https://forums.unrealengine.com/t/what-is-the-meaning-of-waitmutex/478579 "2021-02-10T15:06:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_8fe8ffc6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8fe8ffc6](https://forums.unrealengine.com/u/anonymous_user_8fe8ffc6)\
**Post date:** [February 10, 2021, 3:06pm UTC](https://forums.unrealengine.com/t/what-is-the-meaning-of-waitmutex/478579/1 "2021-02-10T15:06:52Z")

</div>

When compiling with `UnrealBuildTool.exe` I often come accross `-WaitMutex`,  
What does it do?

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [February 10, 2021, 5:23pm UTC](https://forums.unrealengine.com/t/what-is-the-meaning-of-waitmutex/478579/2 "2021-02-10T17:23:28Z")

</div>

Mutex is a special synchronization primitive. Most often it is used to avoid multiaccess to some commonly used resource that should be used in monopolic manner. In this case, UnrealBuildTool.exe can build only one proj at the moment and if you try to use it with another project at the same time it can throw this exception.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8fe8ffc6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8fe8ffc6](https://forums.unrealengine.com/u/anonymous_user_8fe8ffc6)\
**Post date:** [February 12, 2021, 8:50am UTC](https://forums.unrealengine.com/t/what-is-the-meaning-of-waitmutex/478579/3 "2021-02-12T08:50:20Z")

</div>

Thank you! Could you make this an answer so that I can validate it?

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [February 12, 2021, 11:21am UTC](https://forums.unrealengine.com/t/what-is-the-meaning-of-waitmutex/478579/4 "2021-02-12T11:21:08Z")

</div>

Mutex is a special synchronization primitive. Most often it is used to avoid multiaccess to some commonly used resource that should be used in monopolic manner. In this case, UnrealBuildTool.exe can build only one proj at the moment and if you try to use it with another project at the same time it can throw this exception.
