fix: examples

This commit is contained in:
2025-09-05 00:18:08 +02:00
parent 24f6ed0f84
commit 4f71eed36f
11 changed files with 69 additions and 56 deletions

View File

@@ -73,7 +73,7 @@ mcl_hashmap_s *mcl_hm_init(hash_f *hash_fn, equal_f *equal_fn, free_key_f *free_
int ret;
for (size_t i = 0; i < hashmap->num_locks; ++i) {
ret = mtx_init(&(hashmap->locks[i]), NULL);
ret = mtx_init(&(hashmap->locks[i]), mtx_plain);
if (ret != thrd_success) {
/* Mutex failed */
for (size_t j = 0; j < i; ++j) {