|
clang-tools 22.0.0git
|
Limits the number of threads that can acquire the lock at the same time. More...
#include <Threading.h>
Public Member Functions | |
| Semaphore (std::size_t MaxLocks) | |
| bool | try_lock () |
| void | lock () |
| void | unlock () |
Limits the number of threads that can acquire the lock at the same time.
Definition at line 29 of file Threading.h.
| clang::clangd::Semaphore::Semaphore | ( | std::size_t | MaxLocks | ) |
Definition at line 43 of file Threading.cpp.
| void clang::clangd::Semaphore::lock | ( | ) |
Definition at line 54 of file Threading.cpp.
| bool clang::clangd::Semaphore::try_lock | ( | ) |
Definition at line 45 of file Threading.cpp.
| void clang::clangd::Semaphore::unlock | ( | ) |
Definition at line 65 of file Threading.cpp.