From 27718f093689dbd3decd7021eaa97327f578c8f3 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 7 Mar 2019 22:19:57 +0100 Subject: Add hash map --- src/std/thread.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/std/thread.c') diff --git a/src/std/thread.c b/src/std/thread.c index c8dba9a..64a7f1b 100644 --- a/src/std/thread.c +++ b/src/std/thread.c @@ -89,6 +89,10 @@ void amal_mutex_init(amal_mutex *self) { self->lock_identifier = NULL; } +void amal_mutex_deinit(amal_mutex *self) { + pthread_mutex_destroy(&self->mutex); +} + static long amal_process_get_id() { return getpid(); } -- cgit v1.2.3