fix cx_ll_insert_sorted_cmp_func not being thread local

Mon, 09 Sep 2024 21:54:22 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 09 Sep 2024 21:54:22 +0200
changeset 880
54133f14043f
parent 879
9c24a4eb5ac9
child 881
1dbbf8c1c42f

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;

mercurial