Preethi Natarajan wrote:
OK, this is my question:
A thread is currently painting a JPEG image. Halfway through, the bulk of data from the transport layer belongs to a different object (that should be painted on the same web page. Note that the thread is not done painting the JPEG image and it is expecting more data from the server to complete the JPEG image).

- What does the painting thread do now?

Now when? The typical flow of data is that the transport thread passes some data to the main thread and indicates which request the data belongs to (where a "request" is basically a communication abstraction between the two threads here). The main thread does whatever it wants with that data at this point.

Does that help? If not, I'm afraid I'm just not following your question, probably because we're making very different assumptions about the threading model and data flow in Gecko.... Perhaps you could explain your assumptions?

-Boris
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to