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

Kangil Han kangil.han at samsung.com
Wed Oct 31 03:08:43 PDT 2012


Hi Jussi,

Sure, this helps my understanding. :)

Thanks,
Kangil Han

-----Original Message-----
From: webkit-efl-bounces at lists.webkit.org
[mailto:webkit-efl-bounces at lists.webkit.org] On Behalf Of Jussi Kukkonen
Sent: Wednesday, October 31, 2012 6:59 PM
To: webkit-efl at lists.webkit.org
Subject: Re: [webkit-efl] Common ref and unref functions for EFL WK2 objects

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
_______________________________________________
webkit-efl mailing list
webkit-efl at lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-efl



More information about the webkit-efl mailing list