Bug #47065

Michael Stahl mstahl at redhat.com
Mon Feb 4 05:35:04 PST 2013


On 04/02/13 14:30, Jan Holesovsky wrote:
> Regarding your question in the bug - LO has its own threading API, you
> can use class Thread from sal/inc/osl/thread.hxx
> 
> http://cgit.freedesktop.org/libreoffice/core/tree/sal/inc/osl/thread.hxx
> 
> You basically want to derive your class SomeGoodNameThread: class Thread
> {}; where you overload the virtual run(); method.

no, you should not derive from osl::Thread but instead from
salhelper::Thread which avoids some pitfalls automatically.

salhelper/inc/salhelper/thread.hxx



More information about the LibreOffice mailing list