io.qt.core.QRecursiveMutex Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi Show documentation
Show all versions of qtjambi Show documentation
QtJambi base module containing QtCore, QtGui and QtWidgets.
package io.qt.core;
/**
* Access serialization between threads
* Java wrapper for Qt class QRecursiveMutex
*/
public class QRecursiveMutex extends io.qt.QtObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QRecursiveMutex::QRecursiveMutex()
*/
public QRecursiveMutex(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QRecursiveMutex instance);
/**
*
*/
@io.qt.QtUninvokable
public final void lock(){
lock_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void lock_native(long __this__nativeId);
/**
* Overloaded function for {@link #tryLock(int)}
* with timeout = 0
.
*/
@io.qt.QtUninvokable
public final boolean tryLock() {
return tryLock((int)0);
}
/**
* See QRecursiveMutex::tryLock(int)
*/
@io.qt.QtUninvokable
public final boolean tryLock(int timeout){
return tryLock_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), timeout);
}
@io.qt.QtUninvokable
private native boolean tryLock_native_int(long __this__nativeId, int timeout);
/**
* See QRecursiveMutex::try_lock()
*/
@io.qt.QtUninvokable
public final boolean try_lock(){
return try_lock_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean try_lock_native(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final void unlock(){
unlock_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void unlock_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QRecursiveMutex(QPrivateConstructor p) { super(p); }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy