[all-commits] [llvm/llvm-project] 2926d1: [libc][semaphore] Add post and wait operations for...

Pengxiang Huang via All-commits all-commits at lists.llvm.org
Fri Jul 17 15:19:32 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2926d18a0620a768857dce1c827d0a3da0d0b565
      https://github.com/llvm/llvm-project/commit/2926d18a0620a768857dce1c827d0a3da0d0b565
  Author: Pengxiang Huang <71998072+Pengxiang-Huang at users.noreply.github.com>
  Date:   2026-07-17 (Fri, 17 Jul 2026)

  Changed paths:
    M libc/src/semaphore/linux/CMakeLists.txt
    M libc/src/semaphore/linux/named_semaphore.cpp
    M libc/src/semaphore/linux/semaphore.h
    M libc/test/src/semaphore/linux/CMakeLists.txt
    M libc/test/src/semaphore/linux/semaphore_test.cpp

  Log Message:
  -----------
  [libc][semaphore] Add post and wait operations for internal semaphore (#198959)

This pr implements https://github.com/llvm/llvm-project/issues/190847,
adding the post and wait operations in posix semaphore for linux using
futex.

Particularly, 
`sem_post`:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/sem_post.html
`sem_trywait`, `sem_wait`:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/sem_wait.html
`sem_timedwait`, `sem_clockwait`:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/sem_clockwait.html#

The implementation is assisted by Claude Code Opus 4.7, specifically for
the unit tests generations.



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