File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ internal final class _RecursiveLock
15
15
16
16
internal init ( )
17
17
{
18
- self . mutex = UnsafeMutablePointer < pthread_mutex_t > ( allocatingCapacity : 1 )
19
- self . attribute = UnsafeMutablePointer < pthread_mutexattr_t > ( allocatingCapacity : 1 )
18
+ self . mutex = UnsafeMutablePointer< pthread_mutex_t> . allocate ( capacity : 1 )
19
+ self . attribute = UnsafeMutablePointer< pthread_mutexattr_t> . allocate ( capacity : 1 )
20
20
21
21
pthread_mutexattr_init ( self . attribute)
22
22
pthread_mutexattr_settype ( self . attribute, PTHREAD_MUTEX_RECURSIVE)
@@ -28,8 +28,8 @@ internal final class _RecursiveLock
28
28
pthread_mutexattr_destroy ( self . attribute)
29
29
pthread_mutex_destroy ( self . mutex)
30
30
31
- self . attribute. deallocateCapacity ( 1 )
32
- self . mutex. deallocateCapacity ( 1 )
31
+ self . attribute. deallocate ( capacity : 1 )
32
+ self . mutex. deallocate ( capacity : 1 )
33
33
}
34
34
35
35
internal func lock( )
You can’t perform that action at this time.
0 commit comments