mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-14 15:19:40 +02:00
Qt6: added missing QThread routines to cbindings.
This commit is contained in:
parent
91549d29f6
commit
5ace4db416
@ -1,5 +1,5 @@
|
||||
//******************************************************************************
|
||||
// Copyright (c) 2005-2013 by Jan Van hijfte
|
||||
// Copyright (c) 2005-2023 by Jan Van hijfte, Željan Rikalo
|
||||
//
|
||||
// See the included file COPYING.TXT for details about the copyright.
|
||||
//
|
||||
@ -111,6 +111,21 @@ bool QThread_wait(QThreadH handle, unsigned long time)
|
||||
return (bool) ((QThread *)handle)->wait(time);
|
||||
}
|
||||
|
||||
bool QThread_isInterruptionRequested(QThreadH handle)
|
||||
{
|
||||
return (bool) ((QThread *)handle)->isInterruptionRequested();
|
||||
}
|
||||
|
||||
void QThread_requestInterruption(QThreadH handle)
|
||||
{
|
||||
((QThread *)handle)->requestInterruption();
|
||||
}
|
||||
|
||||
int QThread_loopLevel(QThreadH handle)
|
||||
{
|
||||
return (int) ((QThread *)handle)->loopLevel();
|
||||
}
|
||||
|
||||
void QThread_sleep(unsigned long AnonParam1)
|
||||
{
|
||||
QThread::sleep(AnonParam1);
|
||||
|
@ -1,5 +1,5 @@
|
||||
//******************************************************************************
|
||||
// Copyright (c) 2005-2013 by Jan Van hijfte
|
||||
// Copyright (c) 2005-2023 by Jan Van hijfte, Željan Rikalo
|
||||
//
|
||||
// See the included file COPYING.TXT for details about the copyright.
|
||||
//
|
||||
@ -35,6 +35,9 @@ C_EXPORT void QThread_start(QThreadH handle, QThread::Priority AnonParam1);
|
||||
C_EXPORT void QThread_terminate(QThreadH handle);
|
||||
C_EXPORT void QThread_quit(QThreadH handle);
|
||||
C_EXPORT bool QThread_wait(QThreadH handle, unsigned long time);
|
||||
C_EXPORT bool QThread_isInterruptionRequested(QThreadH handle);
|
||||
C_EXPORT void QThread_requestInterruption(QThreadH handle);
|
||||
C_EXPORT int QThread_loopLevel(QThreadH handle);
|
||||
C_EXPORT void QThread_sleep(unsigned long AnonParam1);
|
||||
C_EXPORT void QThread_msleep(unsigned long AnonParam1);
|
||||
C_EXPORT void QThread_usleep(unsigned long AnonParam1);
|
||||
|
Loading…
Reference in New Issue
Block a user