java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QSemaphore
- All Implemented Interfaces:
QtObjectInterface
public class QSemaphore extends QtObject
General counting semaphore
Java wrapper for Qt class QSemaphore
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QSemaphore()
Overloaded constructor forQSemaphore(int)
withn = 0
.QSemaphore(int n)
protected
QSemaphore(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description void
acquire()
Overloaded function foracquire(int)
withn = 1
.void
acquire(int n)
int
available()
void
release()
Overloaded function forrelease(int)
withn = 1
.void
release(int n)
boolean
tryAcquire()
Overloaded function fortryAcquire(int)
withn = 1
.boolean
tryAcquire(int n)
boolean
tryAcquire(int n, int timeout)
-
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
-