java.lang.Object
io.qt.internal.QtJambiObject
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
ModifierConstructorDescriptionOverloaded constructor forQSemaphore(int)
withn = 0
.QSemaphore
(int n) protected
Constructor for internal use only. -
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
Overloaded function fortryAcquire(int)
withn = 1
.final boolean
tryAcquire
(int n) final boolean
tryAcquire
(int n, int timeout) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QSemaphore
public QSemaphore()Overloaded constructor for
QSemaphore(int)
withn = 0
. -
QSemaphore
public QSemaphore(int n) -
QSemaphore
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
acquire
Overloaded function for
acquire(int)
withn = 1
. -
acquire
-
available
-
release
Overloaded function for
release(int)
withn = 1
. -
release
-
tryAcquire
Overloaded function for
tryAcquire(int)
withn = 1
. -
tryAcquire
-
tryAcquire
-