# HG changeset patch # User Mike Becker # Date 1725911662 -7200 # Node ID 54133f14043f2092e7e139ba796858cea236b532 # Parent 9c24a4eb5ac977395d00e72b36d1888c95ac2d5a fix cx_ll_insert_sorted_cmp_func not being thread local relates to #415 diff -r 9c24a4eb5ac9 -r 54133f14043f src/linked_list.c --- 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;