[Qt-interest] Multithreading - yield function
Patric
userqt at gmail.com
Mon Aug 31 19:15:37 CEST 2009
Hello Thomas,
emit some signal
yieldCurrentThread();
some other code
if this method was working, the last line should not have been executed. But
it executes.
The current thread is just passing by the yieldCurrentThread() function.
And I'm saying somethimes, because I'm actually not sure if it'll yield the
execution at some later point... but it should do it immidiately after the
function call.
William, yes it works. But this is a workaround, the yield function should
be working.
I'm using mine from a worker thread.
Regards,
Patric
----- Original Message -----
From: "Thomas Dähling" <t.daehling at googlemail.com>
To: "Patric" <userqt at gmail.com>
Cc: <qt-interest at trolltech.com>
Sent: Monday, August 31, 2009 8:10 PM
Subject: Re: [Qt-interest] Multithreading - yield function
> Define 'not always working'. If there is no other thread waiting for
> processing time, then the current thread will simply continue.
>
> 2009/8/31 Patric <userqt at gmail.com>:
>> Hi guys,
>> it seems for me that the yield function (QThread::yieldCurrentThread) is
>> not
>> always working for me. Does anyone else know about problems with this
>> function ? Anyway to bypass it ?
>>
>> Regards,
>> Patric
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>>
>
More information about the Qt-interest-old
mailing list