[libc-commits] [PATCH] D108749: [libc][NFC] Move the mutex implementation into a utility class.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Aug 25 22:56:50 PDT 2021


sivachandra created this revision.
sivachandra added a reviewer: michaelrj.
Herald added subscribers: libc-commits, ecnelises, tschuett, jfb, mgorny.
Herald added a project: libc-project.
sivachandra requested review of this revision.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108749

Files:
  libc/src/threads/linux/CMakeLists.txt
  libc/src/threads/linux/Futex.h
  libc/src/threads/linux/Mutex.h
  libc/src/threads/linux/Thread.h
  libc/src/threads/linux/call_once.cpp
  libc/src/threads/linux/mtx_init.cpp
  libc/src/threads/linux/mtx_lock.cpp
  libc/src/threads/linux/mtx_unlock.cpp
  libc/src/threads/linux/thrd_create.cpp
  libc/src/threads/linux/thrd_join.cpp
  libc/src/threads/linux/thread_utils.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108749.368810.patch
Type: text/x-patch
Size: 16236 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20210826/09297d77/attachment-0001.bin>


More information about the libc-commits mailing list