signals: No need to use atomics for Handler refcount
authorAlexander Larsson <alexl@redhat.com>
Thu, 21 Feb 2013 15:06:24 +0000 (16:06 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 21 Feb 2013 15:54:44 +0000 (16:54 +0100)
commit3e274423bacfa1b702fea93fba9d6d44c650db44
tree647a6e3af9e4358127a177e248919d62872a010b
parent5bbca5fa0c96904542f286b55329820a9567a9c9
signals: No need to use atomics for Handler refcount

handler_ref and handler_unref_R are always called with the signal
lock held. This is obvious for handler_unref_R as it even sometimes
drops this lock, and can be verified quickly for handler_ref by looking
at all call sites.

This improves the performace about 6% on the emit-handled and the
emit-handled-generic tests.

https://bugzilla.gnome.org/show_bug.cgi?id=694253
gobject/gsignal.c