From f7642b09c9e61f71e434aeb0ceb330d2ccaa25db Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Tue, 12 Mar 2024 01:19:14 +0300 Subject: TQT_THREAD_SUPPORT->!TQT_NO_THREAD: migrate sources Signed-off-by: Alexander Golubev --- src/kernel/ntqapplication.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/kernel/ntqapplication.h') diff --git a/src/kernel/ntqapplication.h b/src/kernel/ntqapplication.h index 4696b290e..8cecb73e8 100644 --- a/src/kernel/ntqapplication.h +++ b/src/kernel/ntqapplication.h @@ -61,10 +61,10 @@ class TQIMEvent; class TQWSDecoration; #endif -#ifdef TQT_THREAD_SUPPORT +#ifndef TQT_NO_THREAD class TQMutex; class TQThread; -#endif // TQT_THREAD_SUPPORT +#endif // TQT_NO_THREAD class TQApplication; @@ -297,7 +297,7 @@ public: static bool x11_apply_settings(); #endif void wakeUpGuiThread(); -#if defined(TQT_THREAD_SUPPORT) +#ifndef TQT_NO_THREAD void lock(); void unlock(bool wakeUpGui = TRUE); bool locked(); @@ -354,9 +354,9 @@ private slots: #endif public: -#ifdef TQT_THREAD_SUPPORT +#ifndef TQT_NO_THREAD static TQMutex *tqt_mutex; -#endif // TQT_THREAD_SUPPORT +#endif // TQT_NO_THREAD private: int app_argc; @@ -372,7 +372,7 @@ private: #ifndef TQT_NO_CURSOR static TQCursor *app_cursor; #endif -#ifndef TQT_THREAD_SUPPORT +#if defined(TQT_NO_THREAD) static TQEventLoop* eventloop; #endif static int app_tracking; @@ -436,9 +436,9 @@ private: friend class TQDialog; friend class TQAccelManager; friend class TQEvent; -#ifdef TQT_THREAD_SUPPORT +#ifndef TQT_NO_THREAD friend class TQThread; -#endif // TQT_THREAD_SUPPORT +#endif // TQT_NO_THREAD friend class TQTranslator; friend class TQEventLoop; friend TQ_EXPORT void tqt_ucm_initialize( TQApplication * ); @@ -458,7 +458,7 @@ private: static TQEventLoop* currentEventLoop(); public: -#ifdef TQT_THREAD_SUPPORT +#ifndef TQT_NO_THREAD static TQThread* guiThread(); static void threadTerminationHandler( TQThread * ); #endif -- cgit v1.2.3