17 WorkItem(
bool deleteAfterFinalize=
true);
20 void FinaliseOnMainThread();
23 bool IsComplete()
const;
24 bool IsFinalised()
const;
26 bool ShouldDeleteAfterFinalize()
const;
28 virtual bool RequiresGlContext()
const {
return true; }
30 const Priority::Values GetPriority()
const {
return m_priority; }
33 virtual void DoWork() = 0;
34 virtual void DoFinalizeOnMainThread() = 0;
35 virtual void DoWorkCancelled() { };
36 virtual void SetPriority(Priority::Values priority) { m_priority = priority; }
41 bool m_deleteAfterFinalize;
42 Priority::Values m_priority;
43 volatile s32 m_cancelled;