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;
import io.qt.*;
/**
* Access serialization between threads
* Java wrapper for Qt class QRecursiveMutex
*/
public class QRecursiveMutex extends QtObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QRecursiveMutex:: QRecursiveMutex()
*/
public QRecursiveMutex(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QRecursiveMutex instance);
/**
*
*/
@QtUninvokable
public final void lock(){
lock_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void lock_native(long __this__nativeId);
/**
* See QRecursiveMutex:: tryLock(QDeadlineTimer)
*/
@QtUninvokable
public final boolean tryLock(io.qt.core.@NonNull QDeadlineTimer timer){
return tryLock_native_QDeadlineTimer(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(timer));
}
@QtUninvokable
private native boolean tryLock_native_QDeadlineTimer(long __this__nativeId, long timer);
/**
* See QRecursiveMutex:: tryLock(int)
*/
@QtUninvokable
public final boolean tryLock(int timeout){
return tryLock_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), timeout);
}
@QtUninvokable
private native boolean tryLock_native_int(long __this__nativeId, int timeout);
/**
* See QRecursiveMutex:: try_lock()
*/
@QtUninvokable
public final boolean try_lock(){
return try_lock_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean try_lock_native(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final void unlock(){
unlock_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void unlock_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QRecursiveMutex(QPrivateConstructor p) { super(p); }
/**
* Overloaded function for {@link #tryLock(io.qt.core.QDeadlineTimer)}
* with timer = new io.qt.core.QDeadlineTimer()
.
*/
@QtUninvokable
public final boolean tryLock() {
return tryLock(new io.qt.core.QDeadlineTimer());
}
/**
* Overloaded function for {@link #tryLock(io.qt.core.QDeadlineTimer)}.
*/
@QtUninvokable
public final boolean tryLock(io.qt.core.QDeadlineTimer.@NonNull ForeverConstant timer) {
return tryLock(new io.qt.core.QDeadlineTimer(timer));
}
}