[webkit-dev] Windows Multithread issue
Oliver Hunt
oliver at apple.com
Tue Jun 16 00:40:45 PDT 2009
It's not just JS -- WebCore is not threadsafe -- chrome gets around
this by hosting each webview in a distinct process -- effectively the
same as if you launched multiple instances of safari (or Cruz, Shiira,
OmniWeb, etc) to get parallel browsing (this is a high level overview,
chrome does other work as well, but it's not relevant to the
discussion).
Making WebCore and the WebKit API threadsafe in the way requested
would be non-trivial. Although i'm kind of interested in what
specifically the original emailer wanted to do
--Oliver
On Jun 16, 2009, at 12:10 AM, John Abd-El-Malek wrote:
> Thanks for the info guys, I stand corrected. Completely forgot
> about the JS issue.
>
> 2009/6/15 Oliver Hunt <oliver at apple.com>
> This is not possible due to various issues with the interaction
> between JS across multiple webviews, and the additional assumption
> that all layout and painting occurs in the UI thread. Attempting to
> interact with WebKit on multiple threads will cause crashes.
>
> --Oliver
>
> On Jun 15, 2009, at 9:05 PM, 熊科浪 wrote:
>
>>
>> hi
>> I want to develop c++ application that uses WebKit on Windows.
>> Can I start a thread for each web view? or I must ceate every web
>> view and handle every event in the main thread?and why?are there
>> any plan to change it?
>>
>> Thank you.
>>
>> --
>> clive
>> 立刻下载 MSN 保护盾,保障Messenger 安全稳定! 现在就下载!
>> _______________________________________________
>>
>> webkit-dev mailing list
>> webkit-dev at lists.webkit.org
>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090616/9045da8a/attachment.html>
More information about the webkit-dev
mailing list