gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-dev] New network structure


From: strk
Subject: Re: [Gnash-dev] New network structure
Date: Thu, 8 Mar 2007 13:50:34 +0100

On Sun, Mar 04, 2007 at 11:02:20PM +0100, Tomas Groth wrote:
> Hi,
> 
> Just to end this thread properly, i just wanted to point out that mostly due 
> to
> me failing to read documentation and specs properly, we won't need to switch
> from the current curl_adapter, though it will be extended a bit, and some has
> already been done.
> 
> What still remains is primarily the download thread, which will most likely be
> implemented as a seperate class. A quick design for it could be that it
> receives a tu_file, and a mutex from the as_object that needs something
> downloaded. The mutex is used to avoid the thread writing new data to the file
> while the as_object is reading. If needed the as_object can pass a number (X)
> and a callback function to the download class which will call the callback 
> when
> there has been downloaded X bytes of the file.

WARNING!
Let's don't let loader threads execute arbitrary code !
I wouldn't want to protect *everything* with mutexes.
We definitely don't the advance loop to be in a race with
loader threads.

--strk;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]