java.lang.Object
io.qt.QtObject
io.qt.core.QSemaphore
- All Implemented Interfaces:
QtObjectInterface
General counting semaphore
Java wrapper for Qt class QSemaphore
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
acquire()
Overloaded function foracquire(int)
withn = 1
.final void
acquire
(int n) final int
final void
release()
Overloaded function forrelease(int)
withn = 1
.final void
release
(int n) final boolean
final boolean
Overloaded function fortryAcquire(int)
withn = 1
.final boolean
tryAcquire
(int n) final boolean
tryAcquire
(int n, int timeout) final boolean
tryAcquire
(int n, QDeadlineTimer timeout) final boolean
tryAcquire
(int n, QDeadlineTimer.ForeverConstant timeout) Overloaded function fortryAcquire(int, io.qt.core.QDeadlineTimer)
.Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QSemaphore
public QSemaphore(int n) -
QSemaphore
public QSemaphore()Overloaded constructor for
QSemaphore(int)
withn = 0
.
-
-
Method Details
-
acquire
-
available
-
release
-
tryAcquire
-
tryAcquire
See
QSemaphore::
tryAcquire(int, QDeadlineTimer) This function was introduced in Qt 6.6.
-
tryAcquire
-
try_acquire
This function was introduced in Qt 6.3.
-
acquire
Overloaded function for
acquire(int)
withn = 1
. -
release
Overloaded function for
release(int)
withn = 1
. -
tryAcquire
Overloaded function for
tryAcquire(int)
withn = 1
. -
tryAcquire
Overloaded function for
tryAcquire(int, io.qt.core.QDeadlineTimer)
.
-