Skip to content

Commit 47efda5

Browse files
committed
[Concurrency] Update header file.
This needed an update to make things build on Linux and Windows. rdar://141348916
1 parent aa22ef9 commit 47efda5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

stdlib/public/Concurrency/ExecutorBridge.h

+5-3
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,17 @@ namespace swift {
2323
extern "C" SWIFT_CC(swift)
2424
SerialExecutorRef swift_getMainExecutor();
2525

26+
#if !SWIFT_CONCURRENCY_EMBEDDED
2627
extern "C" SWIFT_CC(swift)
27-
void *swift_createDispatchEvent(void (^handler)());
28+
void *swift_createDispatchEventC(void (*handler)(void *), void *context);
2829

2930
extern "C" SWIFT_CC(swift)
30-
void swift_destroyDispatchEvent(void *event);
31+
void swift_destroyDispatchEventC(void *event);
3132

3233
extern "C" SWIFT_CC(swift)
3334
void swift_signalDispatchEvent(void *event);
34-
35+
#endif // !SWIFT_CONCURRENCY_EMBEDDED
36+
3537
extern "C" SWIFT_CC(swift) __attribute__((noreturn))
3638
void swift_dispatchMain();
3739

0 commit comments

Comments
 (0)