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 @@ -623,7 +623,7 @@ static AsyncTaskAndContext swift_task_create_commonImpl(
623
623
}
624
624
625
625
// If we're supposed to copy task locals, do so now.
626
- if (taskCreateFlags.copyThreadLocals ()) {
626
+ if (taskCreateFlags.copyTaskLocals ()) {
627
627
swift_task_localsCopyTo (task);
628
628
}
629
629
Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ struct TaskCreateFlags {
423
423
424
424
/// Whether to copy thread locals from the currently-executing task into the
425
425
/// newly-created task.
426
- var copyThreadLocals : Bool {
426
+ var copyTaskLocals : Bool {
427
427
get {
428
428
( bits & ( 1 << 10 ) ) != 0
429
429
}
@@ -514,7 +514,7 @@ extension Task where Failure == Never {
514
514
var flags = TaskCreateFlags ( )
515
515
flags. priority = priority ?? Task < Never , Never > . currentPriority. _downgradeUserInteractive
516
516
flags. inheritContext = true
517
- flags. copyThreadLocals = true
517
+ flags. copyTaskLocals = true
518
518
flags. enqueueJob = true
519
519
520
520
// Create the asynchronous task.
@@ -548,7 +548,7 @@ extension Task where Failure == Error {
548
548
var flags = TaskCreateFlags ( )
549
549
flags. priority = priority ?? Task < Never , Never > . currentPriority. _downgradeUserInteractive
550
550
flags. inheritContext = true
551
- flags. copyThreadLocals = true
551
+ flags. copyTaskLocals = true
552
552
flags. enqueueJob = true
553
553
554
554
// Create the asynchronous task future.
You can’t perform that action at this time.
0 commit comments