bug? or my bad use of threads part 2
Amir Taaki
genjix at gmail.com
Tue Sep 15 20:51:54 CEST 2009
oops that slipped my attention. but still removing the offending code the
crash is still present
On Tue, Sep 15, 2009 at 7:43 PM, Aaron J. Seigo <aseigo at kde.org> wrote:
> On September 15, 2009, Amir Taaki wrote:
> > Basically was having some trouble in my plugin so I've hacked this small
> > testcase. It consists of one threaded object writing to an image read by
> > the main Plasma Wallpaper object and drawn to the screen.
>
> Tutorial1::Tutorial1(QObject *parent, const QVariantList &args)
> : Plasma::Wallpaper(parent, args), mutex(new QMutex), blaa(parent,
> mutex, &img)
> {
> img = NULL;
> mutex = new QMutex;
>
> you're assigning mutex twice, once in the ctor init list and once in the
> body
> of the ctor.
>
> that means that Tutorial1 and Blaa are using separate mutexes, which
> defeats
> the purpose of having one ;)
>
> --
> Aaron J. Seigo
> humru othro a kohnu se
> GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
>
> KDE core developer sponsored by Qt Development Frameworks
>
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20090915/363a3057/attachment.htm
More information about the Plasma-devel
mailing list