File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 39
39
#include < mutex>
40
40
#endif
41
41
42
+ #if defined(__APPLE__)
43
+ #include < asl.h>
44
+ #include < unistd.h>
45
+ #endif
46
+
42
47
#if SWIFT_STDLIB_HAS_ASL
43
48
#include < asl.h>
44
49
#elif defined(__ANDROID__)
@@ -1075,6 +1080,15 @@ static void _enqueueCompletedTask(NaiveTaskGroupQueue<ReadyQueueItem> *readyQueu
1075
1080
readyQueue->enqueue (readyItem);
1076
1081
}
1077
1082
1083
+ #if SWIFT_CONCURRENCY_TASK_TO_THREAD_MODEL
1084
+ static void _enqueueRawError (DiscardingTaskGroup *group,
1085
+ NaiveTaskGroupQueue<ReadyQueueItem> *readyQueue,
1086
+ SwiftError *error) {
1087
+ auto readyItem = ReadyQueueItem::getRawError (group, error);
1088
+ readyQueue->enqueue (readyItem);
1089
+ }
1090
+ #endif
1091
+
1078
1092
// TaskGroup is locked upon entry and exit
1079
1093
void AccumulatingTaskGroup::enqueueCompletedTask (AsyncTask *completedTask, bool hadErrorResult) {
1080
1094
// Retain the task while it is in the queue; it must remain alive until
You can’t perform that action at this time.
0 commit comments