[all-commits] [llvm/llvm-project] c6626f: [orc-rt] Add LockedAccess utility. (#186737)

Lang Hames via All-commits all-commits at lists.llvm.org
Sun Mar 15 22:40:56 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c6626f0b7019ea4c8bca862fc0f9e8a775ee8cd8
      https://github.com/llvm/llvm-project/commit/c6626f0b7019ea4c8bca862fc0f9e8a775ee8cd8
  Author: Lang Hames <lhames at gmail.com>
  Date:   2026-03-16 (Mon, 16 Mar 2026)

  Changed paths:
    M orc-rt/include/CMakeLists.txt
    A orc-rt/include/orc-rt/LockedAccess.h
    M orc-rt/unittests/CMakeLists.txt
    A orc-rt/unittests/LockedAccessTest.cpp

  Log Message:
  -----------
  [orc-rt] Add LockedAccess utility. (#186737)

LockedAccess provides pointer-like access to a value while holding a
lock. All accessors are rvalue-ref-qualified, restricting usage to
temporaries to prevent accidental lock lifetime extension. A with_ref
method is provided for multi-statement critical sections.



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