[all-commits] [llvm/llvm-project] 6f0c52: [libc++] Refactor atomic_{unsigned, signed}_lock_fr...

Louis Dionne via All-commits all-commits at lists.llvm.org
Wed Nov 22 11:55:35 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f0c52e56fb7f237ed8071573ce8a2021b4c7289
      https://github.com/llvm/llvm-project/commit/6f0c52e56fb7f237ed8071573ce8a2021b4c7289
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2023-11-22 (Wed, 22 Nov 2023)

  Changed paths:
    M libcxx/include/__atomic/aliases.h
    M libcxx/include/atomic
    M libcxx/test/std/atomics/types.pass.cpp

  Log Message:
  -----------
  [libc++] Refactor atomic_{unsigned,signed}_lock_free (#73041)

Their definition was a bit roundabout and it was actually wrong since
atomic_unsigned_lock_free would be a signed type whenever
__cxx_contention_t is lock free, which is most of the time.

Fixes #72968




More information about the All-commits mailing list