diff options
author | Tobias Madl <tobias.madl.dev@gmail.com> | 2015-03-06 10:13:53 +0000 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2015-03-06 12:27:12 +0000 |
commit | b6bb2e9315c9bc3338eaf066df40a969eb4774aa (patch) | |
tree | b57abc5075b774475e4df967723daa66d1734e03 /include/vcl/scheduler.hxx | |
parent | d851e1e3c29afd3315cc763144c6eb92fbef5054 (diff) |
Scheduler: removed variable priority
Change-Id: I6676c1012c4321b53b6ba01ebd4bfa32d56afcf9
Diffstat (limited to 'include/vcl/scheduler.hxx')
-rw-r--r-- | include/vcl/scheduler.hxx | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/include/vcl/scheduler.hxx b/include/vcl/scheduler.hxx index 30f2e1ab4bc8..1e7b3edc91c9 100644 --- a/include/vcl/scheduler.hxx +++ b/include/vcl/scheduler.hxx @@ -27,11 +27,11 @@ class Scheduler; struct ImplSchedulerData { ImplSchedulerData* mpNext; // Pointer to the next element in list - Scheduler* mpScheduler; // Pointer to VCL Idle instance - bool mbDelete; // Destroy this idle? - bool mbInScheduler; // Idle handler currently processed? + Scheduler* mpScheduler; // Pointer to VCL Scheduler instance + bool mbDelete; // Destroy this scheduler? + bool mbInScheduler; // Scheduler currently processed? sal_uLong mnUpdateTime; // Last Update Time - sal_uLong mnUpdateStack; // Update Stack on stack + sal_uLong mnUpdateStack; // Update Stack void Invoke(); @@ -52,9 +52,8 @@ enum class SchedulerPriority { class VCL_DLLPUBLIC Scheduler { protected: - ImplSchedulerData* mpSchedulerData; // Pointer to element in idle list - sal_Int32 miPriority; // Idle priority ( maybe divergent to default) - SchedulerPriority meDefaultPriority; // Default idle priority + ImplSchedulerData* mpSchedulerData; // Pointer to element in scheduler list + SchedulerPriority mePriority; // Scheduler priority bool mbActive; // Currently in the scheduler friend struct ImplSchedulerData; @@ -68,11 +67,9 @@ public: virtual ~Scheduler(); void SetPriority( SchedulerPriority ePriority ); - void SetSchedulingPriority( sal_Int32 iPriority ); - sal_Int32 GetPriority() const { return miPriority; } - SchedulerPriority GetDefaultPriority() const { return meDefaultPriority; } + SchedulerPriority GetPriority() const { return mePriority; } - // Call idle handler + // Call handler virtual void Invoke() = 0; virtual void Start(); @@ -83,8 +80,9 @@ public: Scheduler& operator=( const Scheduler& rScheduler ); static void ImplDeInitScheduler(); - /// Process all pending idle tasks ahead of time in priority order. + // Process one pending Timer with highhest priority static void CallbackTaskScheduling( bool ignore ); + /// Process one pending task ahead of time with highhest priority. static void ProcessTaskScheduling( bool bTimer ); }; |