All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.core.QRecursiveMutex Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
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); /** *

See QRecursiveMutex::lock()

*/ @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); /** *

See QRecursiveMutex::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 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)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy