mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Apply suggestions from code review
Co-authored-by: John McCall <rjmccall@gmail.com>
This commit is contained in:
committed by
GitHub
parent
5546f4da7b
commit
8765d78528
@@ -30,7 +30,7 @@ class Job;
|
|||||||
class SerialExecutorWitnessTable;
|
class SerialExecutorWitnessTable;
|
||||||
class TaskExecutorWitnessTable;
|
class TaskExecutorWitnessTable;
|
||||||
|
|
||||||
/// An unmanaged reference to an serial executor.
|
/// An unmanaged reference to a serial executor.
|
||||||
///
|
///
|
||||||
/// This type corresponds to the type Optional<Builtin.Executor> in
|
/// This type corresponds to the type Optional<Builtin.Executor> in
|
||||||
/// Swift. The representation of nil in Optional<Builtin.Executor>
|
/// Swift. The representation of nil in Optional<Builtin.Executor>
|
||||||
@@ -246,10 +246,10 @@ public:
|
|||||||
return getExecutorKind() == TaskExecutorKind::Ordinary;
|
return getExecutorKind() == TaskExecutorKind::Ordinary;
|
||||||
}
|
}
|
||||||
|
|
||||||
const SerialExecutorWitnessTable *getTaskExecutorWitnessTable() const {
|
const TaskExecutorWitnessTable *getTaskExecutorWitnessTable() const {
|
||||||
assert(!isUndefined());
|
assert(!isUndefined());
|
||||||
auto table = Implementation & WitnessTableMask;
|
auto table = Implementation & WitnessTableMask;
|
||||||
return reinterpret_cast<const SerialExecutorWitnessTable*>(table);
|
return reinterpret_cast<const TaskExecutorWitnessTable*>(table);
|
||||||
}
|
}
|
||||||
|
|
||||||
// /// Do we have to do any work to start running as the requested
|
// /// Do we have to do any work to start running as the requested
|
||||||
|
|||||||
Reference in New Issue
Block a user