diff options
-rw-r--r-- | include/vcl/scheduler.hxx | 15 | ||||
-rw-r--r-- | vcl/inc/saltimer.hxx | 16 | ||||
-rw-r--r-- | vcl/source/app/idle.cxx | 1 | ||||
-rw-r--r-- | vcl/source/app/timer.cxx | 1 |
4 files changed, 20 insertions, 13 deletions
diff --git a/include/vcl/scheduler.hxx b/include/vcl/scheduler.hxx index 5771f3af782f..b1152a012251 100644 --- a/include/vcl/scheduler.hxx +++ b/include/vcl/scheduler.hxx @@ -22,20 +22,9 @@ #include <vcl/dllapi.h> -struct ImplSVData; class Scheduler; -struct ImplSchedulerData -{ - ImplSchedulerData* mpNext; // Pointer to the next element in list - Scheduler* mpScheduler; // Pointer to VCL Scheduler instance - bool mbDelete; // Destroy this scheduler? - bool mbInScheduler; // Scheduler currently processed? - sal_uInt64 mnUpdateTime; // Last Update Time - - void Invoke(); - - static ImplSchedulerData *GetMostImportantTask( bool bTimer ); -}; +struct ImplSVData; +struct ImplSchedulerData; enum class SchedulerPriority { HIGHEST = 0, diff --git a/vcl/inc/saltimer.hxx b/vcl/inc/saltimer.hxx index 01a3012ec00b..04427ad5e769 100644 --- a/vcl/inc/saltimer.hxx +++ b/vcl/inc/saltimer.hxx @@ -54,6 +54,22 @@ public: } }; +class Scheduler; + +// Internal scheduler record holding intrusive linked list pieces +struct ImplSchedulerData +{ + ImplSchedulerData* mpNext; // Pointer to the next element in list + Scheduler* mpScheduler; // Pointer to VCL Scheduler instance + bool mbDelete; // Destroy this scheduler? + bool mbInScheduler; // Scheduler currently processed? + sal_uInt64 mnUpdateTime; // Last Update Time + + void Invoke(); + + static ImplSchedulerData *GetMostImportantTask( bool bTimer ); +}; + #endif // INCLUDED_VCL_INC_SALTIMER_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/source/app/idle.cxx b/vcl/source/app/idle.cxx index bba2d050c2c4..198ccfc1b96e 100644 --- a/vcl/source/app/idle.cxx +++ b/vcl/source/app/idle.cxx @@ -18,6 +18,7 @@ */ #include <vcl/idle.hxx> +#include "saltimer.hxx" void Idle::Invoke() { diff --git a/vcl/source/app/timer.cxx b/vcl/source/app/timer.cxx index de7c52b8a1d1..f5ec1b2901ea 100644 --- a/vcl/source/app/timer.cxx +++ b/vcl/source/app/timer.cxx @@ -19,6 +19,7 @@ #include <tools/time.hxx> #include <vcl/timer.hxx> +#include "saltimer.hxx" void Timer::SetDeletionFlags() { |