icon-theme: Clean up locking
authorAlexander Larsson <alexl@redhat.com>
Wed, 29 Jan 2020 10:08:02 +0000 (11:08 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 30 Jan 2020 09:53:43 +0000 (10:53 +0100)
commit1e6a82513bba08bdcbb4fa5da710a3910e2c7a00
treebde8ae237edcf197eea1f3f4923abbce51cbdb71
parentb087f9ca51aec76f373f2d25676ea79de278f5a1
icon-theme: Clean up locking

Move the lru cache under the global cache lock to avoid some ABBA
style deadlocks when going from icon_theme->icon lock an icon->icon_theme.
We also move all the icon lock uses to a small part of code and make
sure that code never calls out or blocks with any locks held.

Rename the GtkIcon->cache_lock to texture_lock to avoid confusion withe
the global cache_lock.

Removed any mentions of threadsafety from the API docs, we don't
want apps to rely on this, but rather use it outselves internally.
gtk/gtkicontheme.c