Mon, 09 Sep 2024 21:54:22 +0200
fix cx_ll_insert_sorted_cmp_func not being thread local
relates to #415
src/linked_list.c | file | annotate | diff | comparison | revisions |
--- a/src/linked_list.c Mon Sep 09 21:34:39 2024 +0200 +++ b/src/linked_list.c Mon Sep 09 21:54:22 2024 +0200 @@ -676,7 +676,7 @@ return 1 != cx_ll_insert_array(list, index, element, 1); } -static cx_compare_func cx_ll_insert_sorted_cmp_func; +static _Thread_local cx_compare_func cx_ll_insert_sorted_cmp_func; static int cx_ll_insert_sorted_cmp_helper(void const *l, void const *r) { cx_linked_list_node const *left = l;