[libc] Add implementation of call_once from threads.h.
authorSiva Chandra Reddy <sivachandra@google.com>
Tue, 12 May 2020 23:01:28 +0000 (16:01 -0700)
committerSiva Chandra Reddy <sivachandra@google.com>
Fri, 29 May 2020 06:45:09 +0000 (23:45 -0700)
commit0baf0e8cfc1845ef92d397c1ae43793bf9e6aaad
tree270c0cb7d9f84429262c4e41b7340701342b309e
parent17ed6dcb0c96ac6a6fd5021b326213dbd5fef250
[libc] Add implementation of call_once from threads.h.

Reviewers: abrachet, maskray

Differential Revision: https://reviews.llvm.org/D79828
libc/config/linux/api.td
libc/lib/CMakeLists.txt
libc/spec/stdc.td
libc/src/threads/CMakeLists.txt
libc/src/threads/call_once.h [new file with mode: 0644]
libc/src/threads/linux/CMakeLists.txt
libc/src/threads/linux/call_once.cpp [new file with mode: 0644]
libc/test/src/threads/CMakeLists.txt
libc/test/src/threads/call_once_test.cpp [new file with mode: 0644]