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

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

The newest version!
package io.qt.core;


/**
 * 

Condition variable for synchronizing threads

*

Java wrapper for Qt class QWaitCondition

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

See QWaitCondition::QWaitCondition()

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

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

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

See QWaitCondition::wait(QMutex*,QDeadlineTimer)

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

See QWaitCondition::wait(QMutex*,ulong)

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

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

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

See QWaitCondition::wait(QReadWriteLock*,QDeadlineTimer)

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

See QWaitCondition::wait(QReadWriteLock*,ulong)

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

See QWaitCondition::wakeAll()

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

See QWaitCondition::wakeOne()

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy