diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-03-07 22:19:57 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | 27718f093689dbd3decd7021eaa97327f578c8f3 (patch) | |
tree | c41ab4bb5727b22be35c1237279cfdfec0a27561 /src/std/thread.c | |
parent | 81b6004928015ced29b0b949e35753977aa17606 (diff) |
Add hash map
Diffstat (limited to 'src/std/thread.c')
-rw-r--r-- | src/std/thread.c | 4 |
1 files changed, 4 insertions, 0 deletions
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(); } |