clang-tools  14.0.0git
Public Member Functions | List of all members
clang::clangd::Semaphore Class Reference

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 ()
 

Detailed Description

Limits the number of threads that can acquire the lock at the same time.

Definition at line 42 of file Threading.h.

Constructor & Destructor Documentation

◆ Semaphore()

clang::clangd::Semaphore::Semaphore ( std::size_t  MaxLocks)

Definition at line 35 of file Threading.cpp.

Member Function Documentation

◆ lock()

void clang::clangd::Semaphore::lock ( )

Definition at line 46 of file Threading.cpp.

◆ try_lock()

bool clang::clangd::Semaphore::try_lock ( )

Definition at line 37 of file Threading.cpp.

◆ unlock()

void clang::clangd::Semaphore::unlock ( )

Definition at line 57 of file Threading.cpp.


The documentation for this class was generated from the following files: