diff options
author | Siva Chandra Reddy <sivachandra@google.com> | 2020-02-09 23:33:38 -0800 |
---|---|---|
committer | Siva Chandra Reddy <sivachandra@google.com> | 2020-03-09 21:56:02 -0700 |
commit | 550be40515df7135a8628a1abe57b845570645dd (patch) | |
tree | 6183880d62486c0a42e8ecabb08ac8942067c276 /libc/lib | |
parent | fd8c13361348f32acef8f8a972984bb5f0786a0c (diff) | |
download | llvm-550be40515df7135a8628a1abe57b845570645dd.tar.gz |
[libc] Add simple implementations of mtx_lock and mtx_unlock.
These functions only support locking and unlocking of plain mutexes.
They will be extended in future changes to handled recursive and timed
mutexes.
Reviewers: phosek
Differential Revision: https://reviews.llvm.org/D74653
Diffstat (limited to 'libc/lib')
-rw-r--r-- | libc/lib/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/lib/CMakeLists.txt b/libc/lib/CMakeLists.txt index 83b19fd2c9ef..ed91367ed1ad 100644 --- a/libc/lib/CMakeLists.txt +++ b/libc/lib/CMakeLists.txt @@ -24,6 +24,9 @@ add_entrypoint_library( abort # threads.h entrypoints + mtx_init + mtx_lock + mtx_unlock thrd_create thrd_join ) |