File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -333,7 +333,9 @@ class AsyncTask : public HeapObject, public Job {
333
333
334
334
// / Determine the size of the future fragment given a particular future
335
335
// / result type.
336
- static size_t fragmentSize (const Metadata *resultType);
336
+ static size_t fragmentSize (const Metadata *resultType) {
337
+ return storageOffset (resultType) + resultType->vw_size ();
338
+ }
337
339
};
338
340
339
341
bool isFuture () const { return Flags.task_isFuture (); }
Original file line number Diff line number Diff line change 23
23
using namespace swift ;
24
24
using FutureFragment = AsyncTask::FutureFragment;
25
25
26
- size_t FutureFragment::fragmentSize (const Metadata *resultType) {
27
- return storageOffset (resultType) + resultType->vw_size ();
28
- }
29
-
30
26
void FutureFragment::destroy () {
31
27
auto queueHead = waitQueue.load (std::memory_order_acquire);
32
28
switch (queueHead.getStatus ()) {
You can’t perform that action at this time.
0 commit comments