Re: [webkit-dev] Windows Multithread issue
Thanks for the info guys, I stand corrected. Completely forgot about the JS issue. 2009/6/15 Oliver Hunt oli...@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 安全稳定! 现在就下载! http://im.live.cn/safe/ ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Windows Multithread issue
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 oli...@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@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Windows Multithread issue
There are so many classes containing static hashmap, such as string. Cache is a singleton and the contents it caches is not thread-safe. As for js, JSGlobalOjbect is linked by a list. 2009/6/16 John Abd-El-Malek j...@google.com Yes it's possible. The Chromium port runs web views in different processes. You can look at the design docs and source to see how it's done, that should give you an idea of what you have to do this on different threads. 2009/6/15 熊科浪 xiongkel...@hotmail.com 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 安全稳定! 现在就下载! http://im.live.cn/safe/ ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Windows Multithread issue
Yes it's possible. The Chromium port runs web views in different processes. You can look at the design docs and source to see how it's done, that should give you an idea of what you have to do this on different threads. 2009/6/15 熊科浪 xiongkel...@hotmail.com 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 安全稳定! 现在就下载! http://im.live.cn/safe/ ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Windows Multithread issue
2009/6/15 John Abd-El-Malek j...@google.com Yes it's possible. The Chromium port runs web views in different processes. You can look at the design docs and source to see how it's done, that should give you an idea of what you have to do this on different threads. Note that using distinct processes (as Chromium does) is quite different than using distinct threads -- the latter would require a threadsafe codebase, which in large part WebKit today is not (though Dave Hyatt has been doing some prototyping work in this area recently). PK ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Windows Multithread issue
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@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev