java.lang.Object
io.qt.QtObject
io.qt.core.QSemaphore
- All Implemented Interfaces:
QtObjectInterface
General counting semaphore
Java wrapper for Qt class QSemaphore
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
Constructors -
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) 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
-
tryAcquire
-
try_acquire
-
acquire
Overloaded function for
acquire(int)
withn = 1
. -
release
Overloaded function for
release(int)
withn = 1
. -
tryAcquire
Overloaded function for
tryAcquire(int)
withn = 1
.
-