[all-commits] [llvm/llvm-project] 004c7b: [libc][NFC] Move the mutex implementation into a u...

Siva Chandra via All-commits all-commits at lists.llvm.org
Thu Aug 26 11:49:37 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 004c7b1da6cfea1d1f09535607a8c7c2f051e8d5
      https://github.com/llvm/llvm-project/commit/004c7b1da6cfea1d1f09535607a8c7c2f051e8d5
  Author: Siva Chandra Reddy <sivachandra at google.com>
  Date:   2021-08-26 (Thu, 26 Aug 2021)

  Changed paths:
    M libc/src/threads/linux/CMakeLists.txt
    A libc/src/threads/linux/Futex.h
    A libc/src/threads/linux/Mutex.h
    A libc/src/threads/linux/Thread.h
    M libc/src/threads/linux/call_once.cpp
    M libc/src/threads/linux/mtx_init.cpp
    M libc/src/threads/linux/mtx_lock.cpp
    M libc/src/threads/linux/mtx_unlock.cpp
    M libc/src/threads/linux/thrd_create.cpp
    M libc/src/threads/linux/thrd_join.cpp
    R libc/src/threads/linux/thread_utils.h

  Log Message:
  -----------
  [libc][NFC] Move the mutex implementation into a utility class.

This allows others parts of the libc to use the mutex types without
actually pulling in public function implementations.

Along the way, few cleanups have been done, like using a uniform type to
refer the linux futex word.

Reviewed By: michaelrj

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




More information about the All-commits mailing list