![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qsemaphore.h>
Public Member Functions | |
| QSemaphore (int nn=0) | |
| ~QSemaphore () | |
| void | acquire (int nn=1) |
| bool | tryAcquire (int nn=1) |
| bool | tryAcquire (int nn, int timeouttimeout) |
| bool | tryAcquire (int nn, QDeadlineTimer timeouttimeout) |
| void | release (int nn=1) |
| int | available () const |
| bool | try_acquire () noexcept |
| template<typename Rep, typename Period> | |
| bool | try_acquire_for (const std::chrono::duration< Rep, Period > &timeouttimeout) |
| template<typename Clock, typename Duration> | |
| bool | try_acquire_until (const std::chrono::time_point< Clock, Duration > &tp) |
Definition at line 16 of file qsemaphore.h.
|
explicit |
Definition at line 690 of file qsemaphore.cpp.
| QSemaphore::~QSemaphore | ( | ) |
Definition at line 695 of file qsemaphore.cpp.
| void QSemaphore::acquire | ( | int | n = 1 | ) |
Definition at line 700 of file qsemaphore.cpp.
| int QSemaphore::available | ( | ) | const |
Definition at line 710 of file qsemaphore.cpp.
| void QSemaphore::release | ( | int | n = 1 | ) |
Definition at line 705 of file qsemaphore.cpp.
|
inlinenoexcept |
Definition at line 38 of file qsemaphore.h.
|
inline |
Definition at line 40 of file qsemaphore.h.
|
inline |
Definition at line 43 of file qsemaphore.h.
| bool QSemaphore::tryAcquire | ( | int | n, |
| int | timeout ) |
| bool QSemaphore::tryAcquire | ( | int | n, |
| QDeadlineTimer | timeout ) |
Definition at line 720 of file qsemaphore.cpp.
| bool QSemaphore::tryAcquire | ( | int | n = 1 | ) |
Definition at line 715 of file qsemaphore.cpp.