Howto: unique parsejob

Milian Wolff mail at milianw.de
Sun Feb 8 01:05:39 UTC 2009


Am Samstag 07 Februar 2009 schrieb Niko Sams:
> On Sat, Feb 7, 2009 at 7:27 PM, Niko Sams <niko.sams at gmail.com> wrote:
> > On Sat, Feb 7, 2009 at 5:48 PM, Milian Wolff <mail at milianw.de> wrote:
> >> Hi devs!
> >>
> >> Again I got a problem I'm not able to solve: How do I make parsejobs
> >> unique? My case:
> >>
> >> clean kdevduchain
> >> start kdevelop and reopen last documents (3 PHP files)
> >> each one of these tries to get the internalfunctions which does not
> >> exist and thus creates a parsejob for it and run it. That way it can be
> >> sure it's finished and can continue with parsing the real document.
> >
> > we could create a mutex that lets the other threads wait for the first
> > one to finish.
>
> You can test the attached patch - that should fix the problem

Narf, only now I see your mail, after I've spent even more time on trying to 
work around it. Then I tried your hint with the Mutex and it worked like a 
charm. I'll add the QMutexLocker to make sure.

Thanks

-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20090208/0d7882dc/attachment.sig>


More information about the KDevelop-devel mailing list