Mercurial > dwindows
changeset 2750:c77974083ba1
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.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 28 Dec 2021 11:48:34 +0000 |
parents | 1f2c4f7aca4b |
children | ee1cfa7d645e |
files | gtk/dw.c gtk3/dw.c |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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;
--- 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;