mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[6.2] RemoteInspection: Add AsyncTaskInfo.IsSuspended based on HasTaskDependency
This commit is contained in:
@@ -198,6 +198,7 @@ public:
|
||||
bool IsRunning;
|
||||
bool IsEnqueued;
|
||||
bool IsComplete;
|
||||
bool IsSuspended;
|
||||
|
||||
bool HasThreadPort;
|
||||
uint32_t ThreadPort;
|
||||
@@ -1793,6 +1794,8 @@ private:
|
||||
Info.IsEscalated = TaskStatusFlags & ActiveTaskStatusFlags::IsEscalated;
|
||||
Info.IsEnqueued = TaskStatusFlags & ActiveTaskStatusFlags::IsEnqueued;
|
||||
Info.IsComplete = TaskStatusFlags & ActiveTaskStatusFlags::IsComplete;
|
||||
Info.IsSuspended =
|
||||
TaskStatusFlags & ActiveTaskStatusFlags::HasTaskDependency;
|
||||
|
||||
setIsRunning(Info, AsyncTaskObj.get());
|
||||
std::tie(Info.HasThreadPort, Info.ThreadPort) =
|
||||
|
||||
@@ -113,6 +113,7 @@ struct ActiveTaskStatusFlags {
|
||||
static const uint32_t IsRunning = 0x800;
|
||||
static const uint32_t IsEnqueued = 0x1000;
|
||||
static const uint32_t IsComplete = 0x2000;
|
||||
static const uint32_t HasTaskDependency = 0x4000;
|
||||
};
|
||||
|
||||
template <typename Runtime, typename ActiveTaskStatus>
|
||||
|
||||
Reference in New Issue
Block a user