mirror of
https://github.com/apple/swift-async-algorithms
synced 2026-11-25 04:27:48 +00:00
Add WebAssembly support (#273)
This commit is contained in:
1 parent
2ace7010e9
commit
adb12bfccc
2 files changed
+6
No files matched your search
@@ -24,6 +24,8 @@ internal struct Lock {
|
||||
typealias Primitive = pthread_mutex_t
|
||||
#elseif canImport(WinSDK)
|
||||
typealias Primitive = SRWLOCK
|
||||
#else
|
||||
typealias Primitive = Int
|
||||
#endif
|
||||
|
||||
typealias PlatformLock = UnsafeMutablePointer<Primitive>
|
||||
|
||||
Reference in new issue
Block a user