20 #ifndef INCLUDED_VCL_TASK_HXX
21 #define INCLUDED_VCL_TASK_HXX
39 #define PRIO_COUNT (static_cast<int>(TaskPriority::LOWEST) + 1)
53 static void StartTimer( sal_uInt64 nMS );
57 virtual void SetDeletionFlags();
70 virtual sal_uInt64 UpdateMinPeriod( sal_uInt64 nTimeNow )
const = 0;
73 Task(
const char *pDebugName );
75 virtual ~
Task() COVERITY_NOEXCEPT_FALSE;
76 Task& operator=( const
Task& rTask );
81 void SetDebugName(
const char *pDebugName ) { mpDebugName = pDebugName; }
85 virtual void Invoke() = 0;
102 #endif // INCLUDED_VCL_TASK_HXX
bool mbStatic
Is a static object.
Resize runs before repaint, so we won't paint twice.
Important idle events to be run before processing drawing events.
TaskPriority mePriority
Task priority.
Everything running directly after painting.
Default priority used, e.g. the default timer priority.
ImplSchedulerData * mpSchedulerData
Pointer to the element in scheduler list.
void SetDebugName(const char *pDebugName)
TaskPriority mePriority
Task priority.
void SetStatic()
This function must be called for static tasks, so the Task destructor ignores the scheduler mutex...
All repaint events should go in here.
bool mbActive
Currently in the scheduler.
These events should run very fast!
const char * mpDebugName
Useful for debugging.
Low, very idle cleanup tasks.
const char * GetDebugName() const
const ImplSchedulerData * GetSchedulerData() const