Skip to content

Commit 9672494

Browse files
authored
RemoteInspection: Add IsComplete flag to AsyncTaskInfo (#80183)
This will be used by lldb. I'd like to add it to swift-inspect too, but that will require figuring out how to evolve the swift runtime's ABI. rdar://147448235
1 parent ebeee4d commit 9672494

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/swift/RemoteInspection/ReflectionContext.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ class ReflectionContext
194194
bool HasIsRunning; // If false, the IsRunning flag is not valid.
195195
bool IsRunning;
196196
bool IsEnqueued;
197+
bool IsComplete;
197198

198199
bool HasThreadPort;
199200
uint32_t ThreadPort;
@@ -1779,6 +1780,7 @@ class ReflectionContext
17791780
TaskStatusFlags & ActiveTaskStatusFlags::IsStatusRecordLocked;
17801781
Info.IsEscalated = TaskStatusFlags & ActiveTaskStatusFlags::IsEscalated;
17811782
Info.IsEnqueued = TaskStatusFlags & ActiveTaskStatusFlags::IsEnqueued;
1783+
Info.IsComplete = TaskStatusFlags & ActiveTaskStatusFlags::IsComplete;
17821784

17831785
setIsRunning(Info, AsyncTaskObj.get());
17841786
std::tie(Info.HasThreadPort, Info.ThreadPort) =

0 commit comments

Comments
 (0)