File tree 3 files changed +27
-0
lines changed
Runtimes/Core/Concurrency
stdlib/public/Concurrency
3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ add_library(swift_Concurrency
82
82
PlatformExecutorDarwin.swift
83
83
PlatformExecutorLinux.swift
84
84
PlatformExecutorFreeBSD.swift
85
+ PlatformExecutorOpenBSD.swift
85
86
PlatformExecutorWindows.swift
86
87
PriorityQueue.swift
87
88
SourceCompatibilityShims.swift
Original file line number Diff line number Diff line change @@ -164,6 +164,7 @@ set(SWIFT_RUNTIME_CONCURRENCY_SWIFT_SOURCES
164
164
PlatformExecutorDarwin.swift
165
165
PlatformExecutorLinux.swift
166
166
PlatformExecutorWindows.swift
167
+ PlatformExecutorOpenBSD.swift
167
168
PlatformExecutorFreeBSD.swift
168
169
)
169
170
Original file line number Diff line number Diff line change
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // This source file is part of the Swift.org open source project
4
+ //
5
+ // Copyright (c) 2020 - 2025 Apple Inc. and the Swift project authors
6
+ // Licensed under Apache License v2.0 with Runtime Library Exception
7
+ //
8
+ // See https://swift.org/LICENSE.txt for license information
9
+ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10
+ //
11
+ //===----------------------------------------------------------------------===//
12
+
13
+ #if !$Embedded && os(OpenBSD)
14
+
15
+ import Swift
16
+
17
+ // The default executors for now are Dispatch-based
18
+ @available ( SwiftStdlib 6 . 2 , * )
19
+ public struct PlatformExecutorFactory : ExecutorFactory {
20
+ public static let mainExecutor : any MainExecutor = DispatchMainExecutor ( )
21
+ public static let defaultExecutor : any TaskExecutor
22
+ = DispatchGlobalTaskExecutor ( )
23
+ }
24
+
25
+ #endif
You can’t perform that action at this time.
0 commit comments