[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: I/O slave creation seems backward
From:       Malte Starostik <malte () kde ! org>
Date:       2001-09-27 21:52:20
[Download RAW message or body]

Am Thursday 27 September 2001 23:41 schrieb Ben Schepens:
> I have successfully created and used I/O slaves, but I am
> still bothered by the following curiosity:
>
> Job creation sequence seems backwards or prone to race conditions.
> As I understand it, to create an http post job one does the following:
>
> -----------------------------
>     job = KIO::http_post( url, postData, false );
>     job->addMetaData("content-type", contentType );
>     job->addMetaData("referrer", referrerURL);
> -----------------------------
>
> but it seems like the Job and the data transfer has begun before
> the meta data and callback slots are specified.
>
> What am I missing?
The actual job, so anything that would need the meta data or could call your 
slots will not start before you enter the event loop again.
-- 
Malte Starostik
PGP: 1024D/D2F3C787 [C138 2121 FAF3 410A 1C2A  27CD 5431 7745 D2F3 C787]

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic