10 #include <libcamera/base/private.h> 21 unsigned int available() LIBCAMERA_TSA_EXCLUDES(mutex_);
22 void acquire(
unsigned int n = 1) LIBCAMERA_TSA_EXCLUDES(mutex_);
23 bool tryAcquire(
unsigned int n = 1) LIBCAMERA_TSA_EXCLUDES(mutex_);
24 void release(
unsigned int n = 1) LIBCAMERA_TSA_EXCLUDES(mutex_);
29 unsigned int available_ LIBCAMERA_TSA_GUARDED_BY(mutex_);
void acquire(unsigned int n=1) LIBCAMERA_TSA_EXCLUDES(mutex_)
Acquire n resources.
Definition: semaphore.cpp:56
std::mutex wrapper with clang thread safety annotation
Definition: mutex.h:121
General-purpose counting semaphore.
Definition: semaphore.h:16
Top-level libcamera namespace.
Definition: backtrace.h:17
bool tryAcquire(unsigned int n=1) LIBCAMERA_TSA_EXCLUDES(mutex_)
Try to acquire n resources without blocking.
Definition: semaphore.cpp:76
std::condition_variable wrapper integrating with MutexLocker
Definition: mutex.h:129
void release(unsigned int n=1) LIBCAMERA_TSA_EXCLUDES(mutex_)
Release n resources.
Definition: semaphore.cpp:94
Mutex classes with clang thread safety annotation.
Semaphore(unsigned int n=0)
Construct a semaphore with n resources.
Definition: semaphore.cpp:33
unsigned int available() LIBCAMERA_TSA_EXCLUDES(mutex_)
Retrieve the number of available resources.
Definition: semaphore.cpp:42