[webkit-efl] Common ref and unref functions for EFL WK2 objects

Jussi Kukkonen jussi.kukkonen at intel.com
Wed Oct 31 02:58:36 PDT 2012


On Tue, Oct 30, 2012 at 2:00 PM, Kangil Han <kangil.han at samsung.com> wrote:
> Hi Mikhail,
>
>> BTW, WK2 C API has geneiric ref/unfer functions and GTK also does.
> Would you please let us know more specific information on this, i.e. wiki
> url or something that help our understanding?

webkit-gtk objects are actual GObjects, so they have thread-safe
reference counting from GLib, including g_object_ref() /
g_object_unref().

Mikhail mentioned WKRetain/WKRelease already -- being a c++ newbie I
had to read up on this recently: if I understood things correctly they
end up calling ref() and deref() respectively in ThreadSafeRefCounted
(which does what the name implies, either using mutexes or an atomics
implementation inside wtf) .

HTH,
  Jussi


More information about the webkit-efl mailing list