qt-interest@trolltech.com
[Top] [All Lists]

Re: A clean way to sleep a thread?

Subject: Re: A clean way to sleep a thread?
From: Bradley T Hughes
Date: Wed, 6 Jun 2007 14:29:13 +0200
On Wednesday 06 June 2007 11:57:44 Pavel Zdenek wrote:
> To solve things fast, I have eventually ended with a public method of my
> QThread-derived class, which only calls QThread::msleep, and i am casting
> thread() inside Timer to be able to call it. Is that as dirty as i feel
> about it? 

Yes, it is :) This is the way that I suggest doing it to anyone that asks this 
question, too. Sleeping in a thread is usually an indication of lacking 
synchronization between threads.

-- 
Bradley T. Hughes - bhughes at trolltech.com
Trolltech ASA - Sandakervn. 116, P.O. Box 4332 Nydalen, 0402 Oslo, Norway

--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>