diff options
| author | Siva Chandra Reddy <sivachandra@google.com> | 2021-08-25 19:52:09 +0000 |
|---|---|---|
| committer | Siva Chandra Reddy <sivachandra@google.com> | 2021-09-28 21:18:45 +0000 |
| commit | 8379fc4a53cfd9e1a0280d60908ad4a171ad977d (patch) | |
| tree | 59716c2c393a38301be95ebd3ac3a427c84f3dca /libc/src/threads/linux/cnd_broadcast.cpp | |
| parent | 98fde3489a6d9ed3fa409623036e5ba5b99f1404 (diff) | |
[libc] Add implementations of the C standard condition variable functions.
Reviewed By: michaelrj
Differential Revision: https://reviews.llvm.org/D108948
Diffstat (limited to 'libc/src/threads/linux/cnd_broadcast.cpp')
| -rw-r--r-- | libc/src/threads/linux/cnd_broadcast.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libc/src/threads/linux/cnd_broadcast.cpp b/libc/src/threads/linux/cnd_broadcast.cpp index e10f9fa6c228..7b7c8f3b1cfd 100644 --- a/libc/src/threads/linux/cnd_broadcast.cpp +++ b/libc/src/threads/linux/cnd_broadcast.cpp @@ -6,11 +6,16 @@ // //===----------------------------------------------------------------------===// +#include "CndVar.h" + #include "src/threads/cnd_broadcast.h" #include "src/__support/common.h" namespace __llvm_libc { -LLVM_LIBC_FUNCTION(int, cnd_broadcast, (cnd_t * cond)) { return thrd_success; } +LLVM_LIBC_FUNCTION(int, cnd_broadcast, (cnd_t * cond)) { + CndVar *cndvar = reinterpret_cast<CndVar *>(cond); + return cndvar->broadcast(); +} } // namespace __llvm_libc |
