Make sure mutexes are being freed accordingly
This commit is contained in:
parent
f08de81805
commit
4e744043a3
|
@ -35,4 +35,8 @@ class Mutex {
|
||||||
return try closure()
|
return try closure()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deinit {
|
||||||
|
// free the mutex resource
|
||||||
|
pthread_mutex_destroy(&mutex)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue