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

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

There is a newer version: 6.8.0
Show newest version
package io.qt.core;

import io.qt.*;


/**
 * 

Condition variable for synchronizing threads

*

Java wrapper for Qt class QWaitCondition

*/ public class QWaitCondition extends QtObject { static { QtJambi_LibraryUtilities.initialize(); } /** *

See QWaitCondition::QWaitCondition()

*/ public QWaitCondition(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QWaitCondition instance); /** *

See QWaitCondition::wait(QMutex*,QDeadlineTimer)

*/ @QtUninvokable public final boolean wait(io.qt.core.@Nullable QMutex lockedMutex, io.qt.core.@NonNull QDeadlineTimer deadline){ return wait_native_QMutex_ptr_QDeadlineTimer(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(lockedMutex), QtJambi_LibraryUtilities.internal.checkedNativeId(deadline)); } @QtUninvokable private native boolean wait_native_QMutex_ptr_QDeadlineTimer(long __this__nativeId, long lockedMutex, long deadline); /** *

See QWaitCondition::wait(QMutex*,ulong)

*/ @QtUninvokable public final boolean wait(io.qt.core.@Nullable QMutex lockedMutex, int time){ return wait_native_QMutex_ptr_unsigned_long(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(lockedMutex), time); } @QtUninvokable private native boolean wait_native_QMutex_ptr_unsigned_long(long __this__nativeId, long lockedMutex, int time); /** *

See QWaitCondition::wait(QReadWriteLock*,QDeadlineTimer)

*/ @QtUninvokable public final boolean wait(io.qt.core.@Nullable QReadWriteLock lockedReadWriteLock, io.qt.core.@NonNull QDeadlineTimer deadline){ return wait_native_QReadWriteLock_ptr_QDeadlineTimer(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(lockedReadWriteLock), QtJambi_LibraryUtilities.internal.checkedNativeId(deadline)); } @QtUninvokable private native boolean wait_native_QReadWriteLock_ptr_QDeadlineTimer(long __this__nativeId, long lockedReadWriteLock, long deadline); /** *

See QWaitCondition::wait(QReadWriteLock*,ulong)

*/ @QtUninvokable public final boolean wait(io.qt.core.@Nullable QReadWriteLock lockedReadWriteLock, int time){ return wait_native_QReadWriteLock_ptr_unsigned_long(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(lockedReadWriteLock), time); } @QtUninvokable private native boolean wait_native_QReadWriteLock_ptr_unsigned_long(long __this__nativeId, long lockedReadWriteLock, int time); /** *

See QWaitCondition::wakeAll()

*/ @QtUninvokable public final void wakeAll(){ wakeAll_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void wakeAll_native(long __this__nativeId); /** *

See QWaitCondition::wakeOne()

*/ @QtUninvokable public final void wakeOne(){ wakeOne_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void wakeOne_native(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QWaitCondition(QPrivateConstructor p) { super(p); } /** *

Overloaded function for {@link #wait(io.qt.core.QMutex, io.qt.core.QDeadlineTimer)} * with deadline = new QDeadlineTimer(QDeadlineTimer.ForeverConstant.Forever).

*/ @QtUninvokable public final boolean wait(io.qt.core.@Nullable QMutex lockedMutex) { return wait(lockedMutex, new QDeadlineTimer(QDeadlineTimer.ForeverConstant.Forever)); } /** *

Overloaded function for {@link #wait(io.qt.core.QMutex, io.qt.core.QDeadlineTimer)}.

*/ @QtUninvokable public final boolean wait(io.qt.core.@Nullable QMutex lockedMutex, io.qt.core.QDeadlineTimer.@NonNull ForeverConstant deadline) { return wait(lockedMutex, new io.qt.core.QDeadlineTimer(deadline)); } /** *

Overloaded function for {@link #wait(io.qt.core.QReadWriteLock, io.qt.core.QDeadlineTimer)} * with deadline = new QDeadlineTimer(QDeadlineTimer.ForeverConstant.Forever).

*/ @QtUninvokable public final boolean wait(io.qt.core.@Nullable QReadWriteLock lockedReadWriteLock) { return wait(lockedReadWriteLock, new QDeadlineTimer(QDeadlineTimer.ForeverConstant.Forever)); } /** *

Overloaded function for {@link #wait(io.qt.core.QReadWriteLock, io.qt.core.QDeadlineTimer)}.

*/ @QtUninvokable public final boolean wait(io.qt.core.@Nullable QReadWriteLock lockedReadWriteLock, io.qt.core.QDeadlineTimer.@NonNull ForeverConstant deadline) { return wait(lockedReadWriteLock, new io.qt.core.QDeadlineTimer(deadline)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy