java.lang.Object
io.qt.QtObject
io.qt.core.QSystemSemaphore
- All Implemented Interfaces:
QtObjectInterface
General counting system semaphore
Java wrapper for Qt class QSystemSemaphore
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQSystemSemaphore::AccessMode
static enum
Java wrapper for Qt enumQSystemSemaphore::SystemSemaphoreError
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
ConstructorDescriptionQSystemSemaphore
(String key) Overloaded constructor forQSystemSemaphore(java.lang.String, int, io.qt.core.QSystemSemaphore.AccessMode)
QSystemSemaphore
(String key, int initialValue) Overloaded constructor forQSystemSemaphore(java.lang.String, int, io.qt.core.QSystemSemaphore.AccessMode)
withmode = io.qt.core.QSystemSemaphore.AccessMode.Open
.QSystemSemaphore
(String key, int initialValue, QSystemSemaphore.AccessMode mode) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
acquire()
error()
final String
final String
key()
final boolean
release()
Overloaded function forrelease(int)
withn = 1
.final boolean
release
(int n) final void
Overloaded function forsetKey(java.lang.String, int, io.qt.core.QSystemSemaphore.AccessMode)
final void
Overloaded function forsetKey(java.lang.String, int, io.qt.core.QSystemSemaphore.AccessMode)
withmode = io.qt.core.QSystemSemaphore.AccessMode.Open
.final void
setKey
(String key, int initialValue, QSystemSemaphore.AccessMode mode) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Constructor Details
-
QSystemSemaphore
- Parameters:
key
-initialValue
-mode
-
-
QSystemSemaphore
Overloaded constructor for
QSystemSemaphore(java.lang.String, int, io.qt.core.QSystemSemaphore.AccessMode)
withmode = io.qt.core.QSystemSemaphore.AccessMode.Open
. -
QSystemSemaphore
Overloaded constructor for
QSystemSemaphore(java.lang.String, int, io.qt.core.QSystemSemaphore.AccessMode)
with:
initialValue = 0
mode = io.qt.core.QSystemSemaphore.AccessMode.Open
-
-
Method Details
-
acquire
- Returns:
-
error
- Returns:
-
errorString
- Returns:
-
key
- Returns:
-
release
- Parameters:
n
-- Returns:
-
setKey
@QtUninvokable public final void setKey(String key, int initialValue, QSystemSemaphore.AccessMode mode) - Parameters:
key
-initialValue
-mode
-
-
release
Overloaded function for
release(int)
withn = 1
. -
setKey
Overloaded function for
setKey(java.lang.String, int, io.qt.core.QSystemSemaphore.AccessMode)
withmode = io.qt.core.QSystemSemaphore.AccessMode.Open
. -
setKey
Overloaded function for
setKey(java.lang.String, int, io.qt.core.QSystemSemaphore.AccessMode)
with:
initialValue = 0
mode = io.qt.core.QSystemSemaphore.AccessMode.Open
-