runners and KIO::NetAccess
Aaron J. Seigo
aseigo at kde.org
Thu Jan 8 23:18:50 CET 2009
On Thursday 08 January 2009, Petri Damstén wrote:
> Hi,
>
> If i try to do KIO::NetAccess::download or KIO::NetAccess::synchronousRun
> in a runner I get a crash. I can't figure out how should I download data
> from the net in runners?
well, for one, these downloads will need to be fast to be useful to the user,
or we'll need to provide for a really "slow boat" for these kinds of runners
(e.g. don't launch them during typing, but only after typing ceases for a
period of time or upon some other user generated signal)
> #0 0x00007f38f0fdc50f in KIO::TransferJob::sendAsyncData (this=0x15fbf00,
> dataForSlave=@0x43195ec0)
> at /home/damu/Development/src/kdelibs/kio/kio/job.cpp:1028
i'll wager that kio isn't thread safe ;) if you put a shared (e.g. class
static) mutex in your runner that wraps the KIO usage, does it then work?
--
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 Software
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20090108/6e470d66/attachment-0001.sig
More information about the Plasma-devel
mailing list