[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-commit] gnash ChangeLog libbase/LoadThread.cpp
From: |
Tomas Groth |
Subject: |
Re: [Gnash-commit] gnash ChangeLog libbase/LoadThread.cpp |
Date: |
Wed, 30 May 2007 09:29:56 +0200 (CEST) |
--- strk <address@hidden> skrev:
> 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;
>
Too much copy/paste too late and too tired :(
Fixed (I hope).
cheers,
Tomas