io.qt.core.QBasicMutex 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.*;
/**
* Java wrapper for Qt class QBasicMutex
*/
public class QBasicMutex extends QtObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QBasicMutex:: QBasicMutex()
*/
public QBasicMutex(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QBasicMutex instance);
/**
* See QBasicMutex:: lock()
*/
@QtUninvokable
public final void lock(){
lock_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void lock_native(long __this__nativeId);
/**
* See QBasicMutex:: tryLock()
*/
@QtUninvokable
public final boolean tryLock(){
return tryLock_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean tryLock_native(long __this__nativeId);
/**
* See QBasicMutex:: unlock()
*/
@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 QBasicMutex(QPrivateConstructor p) { super(p); }
}