Why `fiber::mutex` yields in `try_lock` even after acquiring the lock successfully?
Đang mở
- Ngôn ngữ chính
- C++
- Star
- 510
- Fork
- 123
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Recently I'm reading the source code of `fiber::mutex`, I noticed that`fiber::mutex` will yield in `try_lock` no matter whether holding the lock or not? What's the considerations behind it, and can we just return immediately after lock? Thanks in advance.
https://github.com/boostorg/fiber/blob/238487b543e8863c647d31a82ccfc3fa11a960d9/src/mutex.cpp#L43-L60
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.