[Development] API review for a new QDnsResolver class

Thiago Macieira thiago.macieira at intel.com
Thu Jan 5 01:47:43 CET 2012


On Thursday, 5 de January de 2012 11.03.42, Craig.Scott at csiro.au wrote:
> This could be perceived as creating a race condition. You'd have to connect
> a slot to the signal on the object returned, but what if the signal is
> emitted before you get a chance to do that?

It cannot happen if you make it, by design, not possible.

That means the reply object must ensure that it never processes replies before 
first returning to the user. If a result was found cached (if ever there's a 
cache), then we need to be able to tell the user that the reply has already 
finished.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120104/59b22f90/attachment.sig>


More information about the Development mailing list