18class BackgroundTaskBase {
33 ::ll::TypedStorage<8, 8, ::BackgroundTaskBase*> mPrev;
41 ::ll::TypedStorage<8, 8, uint64> mTaskId;
42 ::ll::TypedStorage<8, 8, void const*> mAsync;
43 ::ll::TypedStorage<8, 8, void const*> mPredecessor;
44 ::ll::TypedStorage<8, 32, ::std::string> mName;
45 ::ll::TypedStorage<8, 16, ::std::string_view> mSourceFile;
46 ::ll::TypedStorage<4, 4, uint> mSourceLine;
47 ::ll::TypedStorage<8, 8, uint64> mPredecessorPendingCount;
48 ::ll::TypedStorage<8, 8, uint64> mPredecessorTotalCount;
49 ::ll::TypedStorage<1, 1, bool> mPredecessorHasPendingCount;
50 ::ll::TypedStorage<1, 1, bool> mPredecessorCancellationLinked;
51 ::ll::TypedStorage<8, 8, uint64> mSuccessorCount;
52 ::ll::TypedStorage<1, 1, bool> mWaitingForPredecessor;
53 ::ll::TypedStorage<4, 4, float> mWaitDurationSeconds;
76 ::ll::TypedStorage<1, 1, bool const> mIsAsync;
77 ::ll::TypedStorage<8, 8, ::IBackgroundTaskOwner*> mGroup;
78 ::ll::TypedStorage<8, 8, ::BackgroundTaskBase*> mPrevTask;
79 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::BackgroundTaskBase>> mNextTask;
80 ::ll::TypedStorage<4, 4, int> mPriority;
81 ::ll::TypedStorage<4, 4, ::std::thread::id> mAffinity;
82 ::ll::TypedStorage<4, 4, int const> mBackDownPriorityAmount;
83 ::ll::TypedStorage<8, 32, ::std::string> mTaskName;
84 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mStartAfterTime;
85 ::ll::TypedStorage<8, 16, ::std::string_view> mSourceFile;
86 ::ll::TypedStorage<4, 4, uint> mSourceLine;
87 ::ll::TypedStorage<8, 8, uint64> mDiagnosticId;
88 ::ll::TypedStorage<1, 1, ::Memory::MemoryCategory> mMemoryCategory;
92 [[nodiscard]]
bool isOrphaned()
const {
return mGroup == &gInternalTaskGroup(); }
103 virtual void cancel() = 0;
105 virtual bool isReady()
const = 0;
109 virtual ::BackgroundTaskBase::DiagnosticInfo getDiagnosticInfo()
const = 0;
122 MCAPI static ::BackgroundTaskBase*& gCurrentTask();
128 MCNAPI
void*
$ctor(::gsl::not_null<::IBackgroundTaskOwner*> group,
::TaskStartInfo const& startInfo,
bool isAsync);
Definition ITaskExecutionContext.h:5