# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1640692114 0 # Node ID c77974083ba14c92f08cfc3049316e9bb7b52e01 # Parent 1f2c4f7aca4b0a569f15002aecf6dffab4f27235 GTK2/3: A few more pthread_setspecific() changes... gcc 11.2 reported the first set, 11.2.1 reported these... I think this is them all now. diff -r 1f2c4f7aca4b -r c77974083ba1 gtk/dw.c --- a/gtk/dw.c Tue Dec 28 11:41:33 2021 +0000 +++ b/gtk/dw.c Tue Dec 28 11:48:34 2021 +0000 @@ -2286,7 +2286,7 @@ if(!pthread_getspecific(_dw_mutex_key)) { gdk_threads_enter(); - pthread_setspecific(_dw_mutex_key, (void *)1); + pthread_setspecific(_dw_mutex_key, (void *)&_dw_locked_by_me); _dw_locked_by_me = TRUE; } _dw_thread = curr; @@ -2325,7 +2325,7 @@ if(!pthread_getspecific(_dw_mutex_key)) { gdk_threads_enter(); - pthread_setspecific(_dw_mutex_key, (void *)1); + pthread_setspecific(_dw_mutex_key, (void *)&_dw_locked_by_me); _dw_locked_by_me = TRUE; } _dw_thread = curr; diff -r 1f2c4f7aca4b -r c77974083ba1 gtk3/dw.c --- a/gtk3/dw.c Tue Dec 28 11:41:33 2021 +0000 +++ b/gtk3/dw.c Tue Dec 28 11:48:34 2021 +0000 @@ -2179,7 +2179,7 @@ if(!pthread_getspecific(_dw_mutex_key)) { _dw_gdk_threads_enter(); - pthread_setspecific(_dw_mutex_key, (void *)1); + pthread_setspecific(_dw_mutex_key, (void *)&_dw_locked_by_me); _dw_locked_by_me = TRUE; } _dw_thread = curr; @@ -2218,7 +2218,7 @@ if(!pthread_getspecific(_dw_mutex_key)) { _dw_gdk_threads_enter(); - pthread_setspecific(_dw_mutex_key, (void *)1); + pthread_setspecific(_dw_mutex_key, (void *)&_dw_locked_by_me); _dw_locked_by_me = TRUE; } _dw_thread = curr;