File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -2031,7 +2031,7 @@ class TaskCreateFlags : public FlagSet<size_t> {
2031
2031
2032
2032
Task_IsChildTask = 8 ,
2033
2033
Task_IsAsyncLetTask = 9 ,
2034
- Task_CopyThreadLocals = 10 ,
2034
+ Task_CopyTaskLocals = 10 ,
2035
2035
Task_InheritContext = 11 ,
2036
2036
Task_EnqueueJob = 12 ,
2037
2037
Task_AddPendingGroupTaskUnconditionally = 13 ,
@@ -2048,9 +2048,9 @@ class TaskCreateFlags : public FlagSet<size_t> {
2048
2048
FLAGSET_DEFINE_FLAG_ACCESSORS (Task_IsAsyncLetTask,
2049
2049
isAsyncLetTask,
2050
2050
setIsAsyncLetTask)
2051
- FLAGSET_DEFINE_FLAG_ACCESSORS (Task_CopyThreadLocals ,
2052
- copyThreadLocals ,
2053
- setCopyThreadLocals )
2051
+ FLAGSET_DEFINE_FLAG_ACCESSORS (Task_CopyTaskLocals ,
2052
+ copyTaskLocals ,
2053
+ setCopyTaskLocals )
2054
2054
FLAGSET_DEFINE_FLAG_ACCESSORS (Task_InheritContext,
2055
2055
inheritContext,
2056
2056
setInheritContext)
Original file line number Diff line number Diff line change @@ -616,7 +616,7 @@ static AsyncTaskAndContext swift_task_create_commonImpl(
616
616
}
617
617
618
618
// If we're supposed to copy task locals, do so now.
619
- if (taskCreateFlags.copyThreadLocals ()) {
619
+ if (taskCreateFlags.copyTaskLocals ()) {
620
620
swift_task_localsCopyTo (task);
621
621
}
622
622
Original file line number Diff line number Diff line change @@ -451,7 +451,7 @@ struct TaskCreateFlags {
451
451
452
452
/// Whether to copy thread locals from the currently-executing task into the
453
453
/// newly-created task.
454
- var copyThreadLocals : Bool {
454
+ var copyTaskLocals : Bool {
455
455
get {
456
456
( bits & ( 1 << 10 ) ) != 0
457
457
}
@@ -542,7 +542,7 @@ extension Task where Failure == Never {
542
542
var flags = TaskCreateFlags ( )
543
543
flags. priority = priority ?? Task < Never , Never > . currentPriority. _downgradeUserInteractive
544
544
flags. inheritContext = true
545
- flags. copyThreadLocals = true
545
+ flags. copyTaskLocals = true
546
546
flags. enqueueJob = true
547
547
548
548
// Create the asynchronous task.
@@ -576,7 +576,7 @@ extension Task where Failure == Error {
576
576
var flags = TaskCreateFlags ( )
577
577
flags. priority = priority ?? Task < Never , Never > . currentPriority. _downgradeUserInteractive
578
578
flags. inheritContext = true
579
- flags. copyThreadLocals = true
579
+ flags. copyTaskLocals = true
580
580
flags. enqueueJob = true
581
581
582
582
// Create the asynchronous task future.
You can’t perform that action at this time.
0 commit comments