[libc-commits] [PATCH] D74653: [libc] Add simple implementations of mtx_lock and mtx_unlock.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Feb 14 14:39:27 PST 2020


sivachandra created this revision.
sivachandra added a reviewer: phosek.
Herald added subscribers: libc-commits, tschuett, jfb, MaskRay, mgorny.
Herald added a project: libc-project.

These functions only support locking and unlocking of plain mutexes.
They will be extended in future changes to handled recursive and timed
mutexes.

LLVM libc's HeaderGen tool has been extended to deal with anonymous enum
types. The standard does not specify any grouping of these anonymous
types but few existing libcs have chosen to logically group. This change
does not do any such grouping. A future change can add support for
groupings if desired.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D74653

Files:
  libc/config/linux/api.td
  libc/config/public_api.td
  libc/include/CMakeLists.txt
  libc/include/threads.h.def
  libc/lib/CMakeLists.txt
  libc/spec/linux.td
  libc/spec/posix.td
  libc/spec/spec.td
  libc/spec/stdc.td
  libc/src/CMakeLists.txt
  libc/src/threads/CMakeLists.txt
  libc/src/threads/linux/CMakeLists.txt
  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/mutex.h
  libc/src/threads/mtx_init.h
  libc/src/threads/mtx_lock.h
  libc/src/threads/mtx_unlock.h
  libc/test/src/CMakeLists.txt
  libc/test/src/threads/CMakeLists.txt
  libc/test/src/threads/linux/CMakeLists.txt
  libc/test/src/threads/linux/mtx_test.cpp
  libc/utils/HdrGen/PublicAPICommand.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74653.244775.patch
Type: text/x-patch
Size: 23951 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20200214/cb4d72f4/attachment-0001.bin>


More information about the libc-commits mailing list