docs: rebuild Threading API content
This commit is contained in:
@@ -1,28 +1,19 @@
|
||||
# Mutex::Mutex()
|
||||
# Mutex::Constructor
|
||||
|
||||
构造对象。
|
||||
默认构造一个互斥锁。
|
||||
|
||||
```cpp
|
||||
Mutex() = default;
|
||||
```
|
||||
|
||||
该方法声明于 `XCEngine/Threading/Mutex.h`,当前页面用于固定 `Mutex` 类目录下的方法级 canonical 路径。
|
||||
## 行为说明
|
||||
|
||||
**参数:** 无。
|
||||
当前构造函数是编译器生成的默认实现,唯一实质状态是内部的 `std::mutex`。
|
||||
|
||||
**返回:** `void` - 无返回值。
|
||||
## 返回值
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
#include <XCEngine/Threading/Mutex.h>
|
||||
|
||||
void Example() {
|
||||
XCEngine::Threading::Mutex object;
|
||||
}
|
||||
```
|
||||
- 无。
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [返回类总览](Mutex.md)
|
||||
- [返回模块目录](../Threading.md)
|
||||
- [返回类型总览](Mutex.md)
|
||||
|
||||
Reference in New Issue
Block a user