-
In addition to the Clang-Tidy and compiler warnings, we also use other static analysis tools. One of them points out that with C++17 there is actually no longer any reason to use `std::lock_guard`, si…
-
ここの 148 行目
https://github.com/traP-jp/ShoutWars-server/blob/9b4761776d633803e7db39ea4eb8d1ee682599eb/room.cpp#L147-L157
バグの危険性があるので、すぐ直します
-
### Summary
`clippy::mutex_integer` lints on usages as well as definitions, which seems redundant (and could be unactionable if this happens cross-crate).
### Reproducer
I tried this code ([playgro…
-
The thread safety analysis can distinguish between reads and writes to variables of simple types, but falls short when the write happens through a method call (see https://gcc.godbolt.org/z/8dffM6j1e …
-
### Describe the bug
There is an unnecessary `clone_shallow` in `make_copy` while deep copying a `PageTableNode`.
https://github.com/asterinas/asterinas/blob/9abdebbae3fdd2940d6767641d5bd4477d42…
-
都是采用RAII技术
unique_lock控制更灵活一些
-
`std::unique_lock` vs `std::lock_guard`
-
### Summary
When using [this library](https://docs.rs/async-condvar-fair/latest/async_condvar_fair/#example-of-passing-a-tuple-of-guard-and-mutex) the warning `this MutexGuard is held across an awa…
-
**Is your feature request related to a problem? Please describe.**
I have an issue trying to use `AdvisoryLockGuard`. The lifetime prevents me from writing code that acquires the lock and then pass…
-
### Bug Details
compile g3dlite,System.cpp:error C2955 “std::lock_guard”: 使用 类 模板 需要 模板 参数列表 ------>please take all ----> std::lock_guard lock(m_lock);reedit ------>std::lock_guard< std::mutex >…