clang-tools  7.0.0
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)
 
void lock ()
 
void unlock ()
 

Detailed Description

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

Definition at line 40 of file Threading.h.

Constructor & Destructor Documentation

◆ Semaphore()

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

Definition at line 24 of file Threading.cpp.

Member Function Documentation

◆ lock()

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

Definition at line 26 of file Threading.cpp.

◆ unlock()

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

Definition at line 37 of file Threading.cpp.


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