@@ -106,7 +106,7 @@ private final class WorkQueue: Sendable {
106
106
#if canImport(WinSDK)
107
107
EnterCriticalSection ( self . mutex)
108
108
defer {
109
- LeaveCriticalSection ( self . mutex) ;
109
+ LeaveCriticalSection ( self . mutex)
110
110
}
111
111
#else
112
112
pthread_mutex_lock ( self . mutex)
@@ -140,7 +140,7 @@ private final class WorkQueue: Sendable {
140
140
self . withLock { queue in
141
141
queue. append ( workItem)
142
142
#if canImport(WinSDK)
143
- WakeConditionVariable ( self . waitCondition) ;
143
+ WakeConditionVariable ( self . waitCondition)
144
144
#else
145
145
pthread_cond_signal ( self . waitCondition)
146
146
#endif
@@ -151,7 +151,7 @@ private final class WorkQueue: Sendable {
151
151
self . withLock { queue in
152
152
queue. removeAll ( )
153
153
#if canImport(WinSDK)
154
- WakeConditionVariable ( self . waitCondition) ;
154
+ WakeConditionVariable ( self . waitCondition)
155
155
#else
156
156
pthread_cond_signal ( self . waitCondition)
157
157
#endif
@@ -209,8 +209,8 @@ private func _shutdownWorkerThread() {
209
209
}
210
210
_workQueue. shutdown ( )
211
211
#if canImport(WinSDK)
212
- WaitForSingleObject ( thread, INFINITE) ;
213
- CloseHandle ( thread) ;
212
+ WaitForSingleObject ( thread, INFINITE)
213
+ CloseHandle ( thread)
214
214
DeleteCriticalSection ( _workQueue. mutex)
215
215
// We do not need to destroy CONDITION_VARIABLE
216
216
#else
@@ -225,7 +225,7 @@ private func _shutdownWorkerThread() {
225
225
// MARK: - AtomicCounter
226
226
227
227
#if canImport(Darwin)
228
- // Unfortunately on Darwin we can unconditionally use Atomic since it requires macOS 15
228
+ // Unfortunately on Darwin we cannot unconditionally use Atomic since it requires macOS 15
229
229
internal struct AtomicCounter : ~ Copyable {
230
230
private let storage : OSAllocatedUnfairLock < UInt8 >
231
231
0 commit comments