[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-commit] gnash ChangeLog libbase/LoadThread.cpp
From: |
strk |
Subject: |
Re: [Gnash-commit] gnash ChangeLog libbase/LoadThread.cpp |
Date: |
Wed, 30 May 2007 08:41:44 +0200 |
On Tue, May 29, 2007 at 11:41:27PM +0000, Tomas Groth wrote:
> LoadThread::~LoadThread()
> {
> // stop the download thread if it's still runnning
> - completed();
> +#ifdef THREADED_LOADS
> + boost::mutex::scoped_lock lock(_mutex);
> + if ( _completed && _thread.get() )
> + {
> + _thread->join();
> + _thread.reset(NULL);
> + }
> +#endif
> if (_cache) delete[] _cache;
> }
So, if ! _completed the thread won't be joined ?
--strk;