<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Dave, Daniel,<div class=""><br class=""></div><div class="">I responded in the bug but I will also respond here:</div><div class=""><br class=""></div><div class="">On Linux,&nbsp;I expect there to be no overlay. Instead we will just have a module map and swift files created by the dispatch project itself. This is what we do for Foundation, and it does require that stuff in the Darwin overlay is duplicated as part of the swift-corelibs-foundation project for Linux.</div><div class=""><br class=""></div><div class="">The purpose of the overlay on Darwin is that we cannot yet ship Swift code as part of dispatch itself (since the standard library is shipped with each app as a static library). We don’t have that limitation on Linux.</div><div class=""><br class=""></div><div class="">- Tony</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 19, 2016, at 5:38 AM, David P Grove via swift-corelibs-dev &lt;<a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><p style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><tt class=""><br class="">&gt; From: Daniel Eggert via swift-corelibs-dev &lt;<a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>&gt;</tt><br class=""><tt class="">&gt;<span class="Apple-converted-space">&nbsp;</span><br class="">&gt; I’m trying to use libdispatch from Swift, but something is off with<span class="Apple-converted-space">&nbsp;</span><br class="">&gt; DISPATCH_QUEUE_SERIAL &amp; DISPATCH_QUEUE_CONCURRENT:<br class="">&gt;<span class="Apple-converted-space">&nbsp;</span><br class="">&gt;<span class="Apple-converted-space">&nbsp;</span><br class="">&gt; func test() {<br class="">&gt; &nbsp; &nbsp; let queueA = dispatch_queue_create("a", DISPATCH_QUEUE_SERIAL)<br class="">&gt; &nbsp; &nbsp; let queueB = dispatch_queue_create("b", DISPATCH_QUEUE_CONCURRENT)<br class="">&gt; }<br class="">&gt;<span class="Apple-converted-space">&nbsp;</span><br class="">&gt;<span class="Apple-converted-space">&nbsp;</span><br class="">&gt;<span class="Apple-converted-space">&nbsp;</span><br class="">&gt; Dispatch.swift:81:45: error: cannot convert value of type '()' to<span class="Apple-converted-space">&nbsp;</span><br class="">&gt; expected argument type 'dispatch_queue_attr_t' (aka 'COpaquePointer')<br class="">&gt; &nbsp; &nbsp; let queueA = dispatch_queue_create("a", DISPATCH_QUEUE_SERIAL)<br class="">&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~~~~~~~~~~~~~~~~~~~<br class="">&gt; Dispatch.swift:82:45: error: use of unresolved identifier<span class="Apple-converted-space">&nbsp;</span><br class="">&gt; 'DISPATCH_QUEUE_CONCURRENT'<br class="">&gt; &nbsp; &nbsp; let queueB = dispatch_queue_create("b", DISPATCH_QUEUE_CONCURRENT)<br class="">&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~~~~~~~~~~~~~~~~~~~~~~~<br class=""></tt><br class=""><tt class="">Hi,</tt><br class=""><br class=""><tt class="">I believe the issue is that the definition of DISPATCH_QUEUE_SERIAL and DISPATCH_QUEUE_CONCURRENT can't be processed by the Swift importer.</tt><br class=""><br class=""><tt class="">There's a pull request that updates the Dispatch overlay (</tt><a href="https://github.com/apple/swift/pull/974" class=""><tt class="">https://github.com/apple/swift/pull/974</tt></a><tt class="">) that we've been using to work around this. &nbsp;It is working around<span class="Apple-converted-space">&nbsp;</span></tt><a href="https://bugs.swift.org/browse/SR-141" class=""><tt class="">https://bugs.swift.org/browse/SR-141</tt></a><br class=""><br class=""><tt class="">--dave</tt><br class=""><tt class=""></tt><br class="">_______________________________________________<br class="">swift-corelibs-dev mailing list<br class=""><a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev" class="">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a></p></div></blockquote></div><br class=""></div></body></html>