File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -72,9 +72,12 @@ class alignas(2 * alignof(void*)) Job :
72
72
// Reserved for the use of the scheduler.
73
73
void *SchedulerPrivate[2 ];
74
74
75
+ // / WARNING: DO NOT MOVE.
76
+ // / Schedulers may assume the memory location of the Flags in order to avoid a runtime call
77
+ // / to get the priority of a job.
75
78
JobFlags Flags;
76
79
77
- // Derived classes can use this to store a Job Id.
80
+ // / Derived classes can use this to store a Job Id.
78
81
uint32_t Id = 0 ;
79
82
80
83
// / The voucher associated with the job. Note: this is currently unused on
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ public struct UnownedJob: Sendable {
63
63
///
64
64
/// Conversions between the two priorities are available as initializers on the respective types.
65
65
@available ( SwiftStdlib 5 . 9 , * )
66
+ @frozen
66
67
public struct JobPriority {
67
68
public typealias RawValue = UInt8
68
69
You can’t perform that action at this time.
0 commit comments