- N3891 A proposal to rename shared_mutex to shared_timed_mutex
- shared_timed_mutex - cpprefjp C++日本語リファレンス
C++14に予定されていたmultiple-readers / single-writerパターンのshared_mutex
クラスですが、shared_timed_mutex
に名称が変更になりました。このクラスに元々、タイムアウト付きのロック取得関数が含まれていたからです。
// <shared_mutex>ヘッダ namespace std { class shared_timed_mutex; template <class Mutex> class shared_lock; }
タイムアウト付きロック取得のないshared_mutex
は、以下のペーパーで改めて提案されています。
N3961 A proposal to add shared_mutex (untimed)
これは、C++14には今のところ予定されていません。
参照
- C++14 共有ロック
- TODO : あとで
shared_timed_mutex
に直す
- TODO : あとで
- C++14の言語拡張まとめ