//===-- Utility condition variable class ------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "src/__support/threads/CndVar.h" #include "src/__support/CPP/mutex.h" #include "src/__support/OSUtil/syscall.h" // syscall_impl #include "src/__support/macros/config.h" #include "src/__support/threads/linux/futex_word.h" // FutexWordType #include "src/__support/threads/linux/raw_mutex.h" // RawMutex #include "src/__support/threads/mutex.h" // Mutex #include <sys/syscall.h> // For syscall numbers. namespace LIBC_NAMESPACE_DECL { int CndVar::wait(Mutex *m) { … } void CndVar::notify_one() { … } void CndVar::broadcast() { … } } // namespace LIBC_NAMESPACE_DECL