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

List:       kde-core-devel
Subject:    Re: Short hostnames in URLs
From:       Lubos Lunak <l.lunak () sh ! cvut ! cz>
Date:       2002-08-07 8:02:00
[Download RAW message or body]

Dne út 6. srpen 2002 15:53 Marc Mutz napsal(a):
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Tuesday 06 August 2002 15:48, Lubos Lunak wrote:
> > +    for(;;)
> > +    {
> > +       qApp->processEvents();
>
> EEEK. My eyes hurt ;-)

 Mine too. I tried to come up with something better, but this seemed to me the 
way that sucks the least.

>
> > +       if( query_done )
> > +           break;
> > +       struct timespec tm;
> > +       tm.tv_sec = 0;
> > +       tm.tv_nsec = 1000000000;
> > +       nanosleep( &tm, NULL );
> > +    }
>
> Isn't there a way that does _not_ use QApp::processEvents()?
>

  Sure. Would you prefer the one starting another process, or the one starting 
another thread, or the one possibly blocking in gethostbyname()?

Dne út 6. srpen 2002 17:28 Waldo Bastian napsal(a):
[snip]
>
> QDns doesn't check /etc/hosts, does it? I rather not see it used directly
> in code since it will result in inconsistent lookup results.

 It does check it.

-- 
 Lubos Lunak
 llunak@suse.cz ; l.lunak@kde.org
 http://dforce.sh.cvut.cz/~seli




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

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