Home
last modified time | relevance | path

Searched refs:Semaphore (Results 1 – 12 of 12) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clangd/support/
H A DThreading.cpp42 Semaphore::Semaphore(std::size_t MaxLocks) : FreeSlots(MaxLocks) {} in Semaphore() function in clang::clangd::Semaphore
44 bool Semaphore::try_lock() { in try_lock()
53 void Semaphore::lock() { in lock()
64 void Semaphore::unlock() { in unlock()
H A DThreading.h28 class Semaphore {
30 Semaphore(std::size_t MaxLocks);
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_mutex.h66 class Semaphore {
68 constexpr Semaphore() {} in Semaphore() function
69 Semaphore(const Semaphore &) = delete;
70 void operator=(const Semaphore &) = delete;
328 Semaphore writers_;
329 Semaphore readers_;
H A Dsanitizer_mutex.cpp31 void Semaphore::Wait() { in Wait()
45 void Semaphore::Post(u32 count) { in Post()
H A Dsanitizer_stackdepot.cpp117 Semaphore semaphore_ = {};
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_mutex_test.cpp168 Semaphore *sem;
179 TEST(SanitizerCommon, Semaphore) { in TEST() argument
180 Semaphore sem; in TEST()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DTUScheduler.h361 llvm::unique_function<void()> Action, Semaphore &Sem);
366 Semaphore Barrier;
367 Semaphore QuickRunBarrier;
H A DTUScheduler.cpp597 Semaphore &Barrier, bool RunSync, const TUScheduler::Options &Opts,
610 AsyncTaskRunner *Tasks, Semaphore &Barrier,
716 Semaphore &Barrier;
807 AsyncTaskRunner *Tasks, Semaphore &Barrier, in create()
826 Semaphore &Barrier, bool RunSync, in ASTWorker()
1419 std::unique_lock<Semaphore> Lock(Barrier, std::try_to_lock); in run()
1694 Semaphore &Sem) { in runWithSemaphore()
1706 std::lock_guard<Semaphore> BarrierLock(Sem); in runWithSemaphore()
1775 std::lock_guard<Semaphore> BarrierLock(Barrier); in runWithPreamble()
/llvm-project-15.0.7/bolt/include/bolt/Core/
H A DBinarySection.h474 uint64_t Semaphore; member
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/
H A Dtsan_interceptors_posix.cpp980 Semaphore created;
981 Semaphore started;
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/
H A Dtsan_interceptors_posix.cpp985 Semaphore created;
986 Semaphore started;
/llvm-project-15.0.7/bolt/lib/Rewrite/
H A DRewriteInstance.cpp580 Marker.Semaphore = DE.getU64(&Offset); in parseSDTNotes()
639 << ", Semaphore: " << utohexstr(Marker.Semaphore) in printSDTMarkers()