yohhoyyohhoy
Closed2021/07/08にクローズ2

std::condition_variable_anyの内部実装

C++
yohhoyyohhoy2021/02/22に更新
  • libstdc++: https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/include/std/condition_variable
  • libcxx: https://github.com/llvm/llvm-project/blob/main/libcxx/include/condition_variable
  • msvc: https://github.com/microsoft/STL/blob/main/stl/inc/condition_variable

https://twitter.com/yohhoy/status/1363741463679434752
https://twitter.com/yohhoy/status/1363809595630657539

yohhoyyohhoy2021/02/24に更新

Why does condition_variable_any needs a mutex managed by a shared_ptr?
(thanks to https://twitter.com/kariya_mitsuru/status/1363833145733210118)

  • libstdc++/54185 - condition_variable not properly destructed

  • libstdc++/54352 - relaxed data race rules for ~condition_variable_any

  • STL/685 Fix not unlocking and relocking in condition_variable_any::wait_for

このスクラップは2021/07/08にクローズされました
ポスト
yohhoy
yohhoy

🐢

エンジニアのための
情報共有コミュニティ

About

  • Zennについて
  • 運営会社
  • お知らせ・リリース
  • イベント

Guides

  • 使い方
  • 法人向けメニューNew
  • Publication / Pro
  • よくある質問

Links

  • X(Twitter)
  • GitHub
  • メディアキット

Legal

  • 利用規約
  • プライバシーポリシー
  • 特商法表記