@@ -261,7 +261,7 @@ fileprivate class _Lock {
261
261
// WASI environment has only a single thread
262
262
#else
263
263
self . underlying = UnsafeMutablePointer . allocate ( capacity: 1 )
264
- guard pthread_mutex_init ( self . underlying, nil ) == 0 else {
264
+ guard unsafe pthread_mutex_init( self . underlying, nil ) == 0 else {
265
265
fatalError ( " pthread_mutex_init failed " )
266
266
}
267
267
#endif
@@ -275,7 +275,7 @@ fileprivate class _Lock {
275
275
#elseif os(WASI)
276
276
// WASI environment has only a single thread
277
277
#else
278
- guard pthread_mutex_destroy ( self . underlying) == 0 else {
278
+ guard unsafe pthread_mutex_destroy( self . underlying) == 0 else {
279
279
fatalError ( " pthread_mutex_destroy failed " )
280
280
}
281
281
#endif
@@ -296,7 +296,7 @@ fileprivate class _Lock {
296
296
#elseif os(WASI)
297
297
// WASI environment has only a single thread
298
298
#else
299
- guard pthread_mutex_lock ( self . underlying) == 0 else {
299
+ guard unsafe pthread_mutex_lock( self . underlying) == 0 else {
300
300
fatalError ( " pthread_mutex_lock failed " )
301
301
}
302
302
#endif
@@ -309,7 +309,7 @@ fileprivate class _Lock {
309
309
#elseif os(WASI)
310
310
// WASI environment has only a single thread
311
311
#else
312
- guard pthread_mutex_unlock ( self . underlying) == 0 else {
312
+ guard unsafe pthread_mutex_unlock( self . underlying) == 0 else {
313
313
fatalError ( " pthread_mutex_unlock failed " )
314
314
}
315
315
#endif
0 commit comments