Mercurial > dwindows
comparison gtk/dw.c @ 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 |
comparison
equal
deleted
inserted
replaced
2749:1f2c4f7aca4b | 2750:c77974083ba1 |
---|---|
2284 if(orig == (pthread_t)-1) | 2284 if(orig == (pthread_t)-1) |
2285 { | 2285 { |
2286 if(!pthread_getspecific(_dw_mutex_key)) | 2286 if(!pthread_getspecific(_dw_mutex_key)) |
2287 { | 2287 { |
2288 gdk_threads_enter(); | 2288 gdk_threads_enter(); |
2289 pthread_setspecific(_dw_mutex_key, (void *)1); | 2289 pthread_setspecific(_dw_mutex_key, (void *)&_dw_locked_by_me); |
2290 _dw_locked_by_me = TRUE; | 2290 _dw_locked_by_me = TRUE; |
2291 } | 2291 } |
2292 _dw_thread = curr; | 2292 _dw_thread = curr; |
2293 } | 2293 } |
2294 if(curr == _dw_thread && gtk_events_pending()) | 2294 if(curr == _dw_thread && gtk_events_pending()) |
2323 if(_dw_thread == (pthread_t)-1) | 2323 if(_dw_thread == (pthread_t)-1) |
2324 { | 2324 { |
2325 if(!pthread_getspecific(_dw_mutex_key)) | 2325 if(!pthread_getspecific(_dw_mutex_key)) |
2326 { | 2326 { |
2327 gdk_threads_enter(); | 2327 gdk_threads_enter(); |
2328 pthread_setspecific(_dw_mutex_key, (void *)1); | 2328 pthread_setspecific(_dw_mutex_key, (void *)&_dw_locked_by_me); |
2329 _dw_locked_by_me = TRUE; | 2329 _dw_locked_by_me = TRUE; |
2330 } | 2330 } |
2331 _dw_thread = curr; | 2331 _dw_thread = curr; |
2332 } | 2332 } |
2333 if(curr == _dw_thread && gtk_events_pending()) | 2333 if(curr == _dw_thread && gtk_events_pending()) |