[Qt-interest] efficient Wait for Thread finished?
Andrew Bell
andrew.bell.ia at gmail.com
Tue Jan 20 17:49:58 CET 2009
On Tue, Jan 20, 2009 at 10:44 AM, Matthias Pospiech
<matthias.pospiech at gmx.de> wrote:
> Bradley T. Hughes schrieb:
>> Matthias Pospiech wrote:
>>
>>> How should it look like?
>>>
>>
>> Why aren't you using QThread::wait()?
>>
>>
> How do I have to understand wait()? From the docs:
>
> QThread::wait ( unsigned long time = ULONG_MAX )
>
> Blocks the thread until either of these conditions is met:
>
>
> Does this mean that it waits, while the thread is running, and blocks
> the calling thread (which waits)?.
> Or does it mean that the thread isself is blocked from executing while
> the calling thread is waiting?
The former.
--
Andrew Bell
andrew.bell.ia at gmail.com
More information about the Qt-interest-old
mailing list