[all-commits] [llvm/llvm-project] 5b666c: [libc++] Fix thread annotations on shared_mutex an...

Louis Dionne via All-commits all-commits at lists.llvm.org
Thu Jul 6 05:37:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b666cf11e7a913fdfd0a65975ff587452635659
      https://github.com/llvm/llvm-project/commit/5b666cf11e7a913fdfd0a65975ff587452635659
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2023-07-06 (Thu, 06 Jul 2023)

  Changed paths:
    M libcxx/.clang-format
    M libcxx/include/shared_mutex
    A libcxx/test/libcxx/thread/thread.shared_mutex/thread_safety.verify.cpp
    A libcxx/test/libcxx/thread/thread.shared_timed_mutex/thread_safety.verify.cpp

  Log Message:
  -----------
  [libc++] Fix thread annotations on shared_mutex and shared_timed_mutex

Based on the comment in https://reviews.llvm.org/D54290#4418958, these
attributes need to be on the top-level functions in order to work
properly. Also, add tests.

Fixes http://llvm.org/PR57035.

Differential Revision: https://reviews.llvm.org/D154354




More information about the All-commits mailing list