darin at apple.com
Fri Mar 13 09:07:41 PDT 2009
On Mar 13, 2009, at 4:17 AM, natasha gabriella wrote:
> I happened to go through code of webkit an sfound some Shared<T>
That class template has a new name in the latest WebKit; it’s now
> What exactly it does.
It implements simple intrusive reference counting.
> Is it like class object is singleton and shared among ?
No, it is not. It adds a reference count to a class. The reason it’s a
template is so we don’t have to write the reference counting by hand
for each class we want ot use it for.
> Moreover if multiple window (mostly will be achieved by using some
> tab like interface) are used, What all loader are advices to be
> shared ?
I don’t understand this question.
More information about the webkit-dev