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) - Parameters:
n
-
-
QSemaphore
public QSemaphore()Overloaded constructor for
QSemaphore(int)
withn = 0
.
-
-
Method Details
-
acquire
- Parameters:
n
-
-
available
- Returns:
-
release
- Parameters:
n
-
-
tryAcquire
- Parameters:
n
-- Returns:
-
tryAcquire
- Parameters:
n
-timeout
-- Returns:
- Since:
- This function was introduced in Qt 6.6.
-
tryAcquire
- Parameters:
n
-timeout
-- Returns:
-
try_acquire
- Returns:
- Since:
- 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)
.
-