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;


_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit

Reply via email to