Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions docs/standard-library/mutex-class-stl.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: "Learn more about: mutex Class (C++ Standard Library)"
title: "mutex Class (C++ Standard Library)| Microsoft Docs"
ms.date: "11/04/2016"
ms.date: "20/10/2021"
f1_keywords: ["mutex/std::mutex", "mutex/std::mutex::mutex", "mutex/std::mutex::lock", "mutex/std::mutex::native_handle", "mutex/std::mutex::try_lock", "mutex/std::mutex::unlock"]
ms.assetid: 7999d055-f74f-4303-810f-8d3c9cde2f69
helpviewer_keywords: ["std::mutex [C++]", "std::mutex [C++], mutex", "std::mutex [C++], lock", "std::mutex [C++], native_handle", "std::mutex [C++], try_lock", "std::mutex [C++], unlock"]
Expand Down Expand Up @@ -57,9 +57,11 @@ If the calling thread already owns the `mutex`, the behavior is undefined.
Constructs a `mutex` object that is not locked.

```cpp
constexpr mutex() noexcept;
mutex() noexcept;
```

**Note:** according to C++ Standard, this constructor should be declared as constexpr, currently it isn't due to compatibility reason.

## <a name="dtormutex_destructor"></a> mutex::~mutex Destructor

Releases any resources that are used by the `mutex` object.
Expand Down