diff --git a/book/en-us/07-thread.md b/book/en-us/07-thread.md index 8173aef..2279efd 100644 --- a/book/en-us/07-thread.md +++ b/book/en-us/07-thread.md @@ -35,7 +35,7 @@ C++11 introduces a class related to `mutex`, with all related functions in the ` It can be locked by its member function `lock()`, and `unlock()` can be unlocked. But in the process of actually writing the code, it is best not to directly call the member function, Because calling member functions, you need to call `unlock()` at the exit of each critical section, and of course, exceptions. -At this time, C++11 also provides a template class `std::lock_guard` for the RAII syntax for the mutex. +At this time, C++11 also provides a template class `std::lock_guard` for the RAII mechanism for the mutex. RAII guarantees the exceptional security of the code while keeping the simplicity of the code. diff --git a/book/zh-cn/07-thread.md b/book/zh-cn/07-thread.md index ba80e7e..dbb3508 100644 --- a/book/zh-cn/07-thread.md +++ b/book/zh-cn/07-thread.md @@ -35,7 +35,8 @@ C++11 引入了 `mutex` 相关的类,其所有相关的函数都放在 `