Multiple QRegExp crashes when multithreading in KRunner
Thiago Macieira
thiago at kde.org
Sat Jan 15 14:08:28 GMT 2011
On Saturday, 15 de January de 2011 12:28:38 Ingo Klöcker wrote:
> On Friday 14 January 2011, Thiago Macieira wrote:
> > On Friday, 14 de January de 2011 21:49:01 Ingo Klöcker wrote:
> > > On Friday 14 January 2011, Thiago Macieira wrote:
> > > > On Friday, 14 de January de 2011 13:46:19 Sebastian Trueg wrote:
> > > > > However, the query parser still uses static QRegExp objects
> > > > > which seems a bad idea, isn't that right?
> > > >
> > > > static QRegExp are a bad idea regardless of whether threading is
> > > > involved or not.
> > >
> > > Why?
> >
> > Because it's static. Static non-PODs aren't a good idea.
>
> Where static means file static, right?
File-static, class-static or function-static, though function-static is the
least evil of those.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt
Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20110115/da05397e/attachment.sig>
More information about the kde-core-devel
mailing list