Make modules.c thread-safe
authorMatthias Clasen <mclasen@redhat.com>
Sat, 15 Sep 2012 02:12:30 +0000 (22:12 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 15 Sep 2012 02:12:30 +0000 (22:12 -0400)
commit25779da81f66bfb7118395757cf1a031af09b068
treed62665e113b6d64ce1485f0b15ab9367e97258ce
parent164c6eb4dc819eb0833d6851f9e16d4994e84e97
Make modules.c thread-safe

The maps list is protected with a mutex.
registered_engines, dlloaded_engines and dlloaded_modules are
read-only after init_modules, which is protected with g_once_init.
Finally, engine creation is protected with another mutex.
pango/modules.c