Skip to content

Commit 4c92890

Browse files
committed
Remove overly strict assert that only the thread which was previously running the task, can mark the task as no-longer running.
1 parent ec4deaf commit 4c92890

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

stdlib/public/Concurrency/TaskPrivate.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,6 @@ class alignas(2 * sizeof(void*)) ActiveTaskStatus {
527527
assert(!dispatch_lock_is_locked(ExecutionLock));
528528
return ActiveTaskStatus(Record, Flags, dispatch_lock_value_for_self());
529529
} else {
530-
assert(dispatch_lock_is_locked_by_self(ExecutionLock));
531530
return ActiveTaskStatus(Record, Flags, ExecutionLock & ~DLOCK_OWNER_MASK);
532531
}
533532
#else

0 commit comments

Comments
 (0)