On Tuesday 11 May 2010 14:09:57 Cédric Bellegarde wrote:
> Hello,
> 
> here a patch that fix a filterurljob thread hang...
> 
> Calling KUriFilter::self () in thread seems to make function hang for some
> seconds... Calling it before running thread fix the bug...
> 
> One question for C++ noob, what is doing KuriFilter::self () ???
> 
> Regards,

self functions are static calls that return pointers to the object itself.
This is useful in example in singleton classes to do some checks like

if ( object.exists )
        return this.object.pointer
else
        return new object

and letting ctors private to force users to obtain object pointers that way.

Btw, thanks for the patch. I will apply this and the one in b.k.o. in the 
evening. :)

Regards,
-- 
Andrea Diamantini, adjam
GPG Fingerprint: 57DE 8E32 7D1A 0E16 AA52 59D8 84F9 3ECD DBF9 730F

rekonq project
WEB: http://rekonq.sourceforge.net
IRC: rek...@freenode

_______________________________________________
rekonq mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/rekonq

Reply via email to