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.1
Show newest version
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); /** *

See QRecursiveMutex::lock()

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

See QRecursiveMutex::unlock()

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