Skip to content

Commit

Permalink
Model: enable concurrent rendering on Windows
Browse files Browse the repository at this point in the history
Assume that concurrent rendering on Windows is the proper thing to do.
It is unclear why Linux (but not Android) uses serial rendering.  This
enables us to make progress with the Windows port.
  • Loading branch information
compnerd committed May 30, 2023
1 parent bd1b78a commit 0ad85ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SwiftDocC/Model/Rendering/RenderContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ public struct RenderContext {
)
}

#if os(macOS) || os(iOS) || os(Android)
// Concurrently render content on macOS/iOS & Android
#if os(macOS) || os(iOS) || os(Android) || os(Windows)
// Concurrently render content on macOS/iOS, Windows & Android
let results: [(reference: ResolvedTopicReference, content: RenderReferenceStore.TopicContent)] = references.concurrentPerform { reference, results in
results.append((reference, renderContentFor(reference)))
}
Expand Down

0 comments on commit 0ad85ae

Please sign in to comment.