[all-commits] [llvm/llvm-project] 81e269: [libc++][test] Fix race condition in condition_var...

Hui via All-commits all-commits at lists.llvm.org
Sun Mar 24 13:53:08 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 81e2693c1202d6c4e48dbf2d985153b03cfccb79
      https://github.com/llvm/llvm-project/commit/81e2693c1202d6c4e48dbf2d985153b03cfccb79
  Author: Hui <hui.xie1990 at gmail.com>
  Date:   2024-03-24 (Sun, 24 Mar 2024)

  Changed paths:
    M libcxx/test/std/thread/thread.condition/thread.condition.condvarany/wait_for_token_pred.pass.cpp
    M libcxx/test/std/thread/thread.condition/thread.condition.condvarany/wait_token_pred.pass.cpp
    M libcxx/test/std/thread/thread.condition/thread.condition.condvarany/wait_until_token_pred.pass.cpp

  Log Message:
  -----------
  [libc++][test] Fix race condition in condition_variable_any tests (#84788)

Some tests in `condition_variable_any` use two `shared_lock` to guard,
which does not work.
The fix is to make the writer to use `unique_lock`



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list