[libc-commits] [PATCH] D126235: [libc] Add the pthread_mutex_t type.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon May 23 12:51:30 PDT 2022


sivachandra created this revision.
sivachandra added reviewers: lntue, michaelrj.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added projects: libc-project, All.
sivachandra requested review of this revision.

Simple implementations of the functions pthread_mutex_init,
pthread_mutex_destroy, pthread_mutex_lock and pthread_mutex_unlock have
have also been added. Future patches will extend these functions to add
features required by the POSIX specification.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D126235

Files:
  libc/config/linux/api.td
  libc/config/linux/x86_64/entrypoints.txt
  libc/include/CMakeLists.txt
  libc/include/llvm-libc-types/CMakeLists.txt
  libc/include/llvm-libc-types/__mutex_type.h
  libc/include/llvm-libc-types/pthread_mutex_t.h
  libc/spec/posix.td
  libc/src/pthread/CMakeLists.txt
  libc/src/pthread/pthread_mutex_destroy.cpp
  libc/src/pthread/pthread_mutex_destroy.h
  libc/src/pthread/pthread_mutex_init.cpp
  libc/src/pthread/pthread_mutex_init.h
  libc/src/pthread/pthread_mutex_lock.cpp
  libc/src/pthread/pthread_mutex_lock.h
  libc/src/pthread/pthread_mutex_unlock.cpp
  libc/src/pthread/pthread_mutex_unlock.h
  libc/src/pthread/pthread_mutexattr.h
  libc/test/src/pthread/CMakeLists.txt
  libc/test/src/pthread/pthread_mutex_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126235.431457.patch
Type: text/x-patch
Size: 21984 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220523/634e958a/attachment-0001.bin>


More information about the libc-commits mailing list