Bug 109130

Summary: Upstream iOS isWebThread() and isUIThread()
Product: WebKit Reporter: Benjamin Poulain <benjamin>
Component: New BugsAssignee: Benjamin Poulain <benjamin>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, ddkilzer, ojan.autocc, psolanki, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Benjamin Poulain
Reported 2013-02-06 20:38:56 PST
Upstream iOS isWebThread() and isUIThread()
Attachments
Patch (6.93 KB, patch)
2013-02-06 20:43 PST, Benjamin Poulain
no flags
Benjamin Poulain
Comment 1 2013-02-06 20:43:05 PST
Adam Barth
Comment 2 2013-02-06 21:26:57 PST
Comment on attachment 186986 [details] Patch LGTM, but I don't understand in enough detail to officially review.
Benjamin Poulain
Comment 3 2013-02-06 23:21:00 PST
> (From update of attachment 186986 [details]) > LGTM, but I don't understand in enough detail to officially review. Thanks for checking the patch. I'll ask Dave for a review.
Build Bot
Comment 4 2013-02-07 01:43:35 PST
David Kilzer (:ddkilzer)
Comment 5 2013-02-07 11:13:03 PST
Comment on attachment 186986 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=186986&action=review > Source/WTF/wtf/mac/MainThreadMac.mm:148 > +#if USE(WEB_THREAD) > +bool isUIThread() > +{ > + return pthread_main_np(); > +} > + > +bool isWebThread() > +{ > + return pthread_equal(pthread_self(), mainThreadPthread); > +} > +#endif // USE(WEB_THREAD) I would have suggested putting these methods in an MainThreadIOS.cpp source file instead of MainThreadMac.mm. They can be moved later if anyone else (besides me) has a strong feeling about it.
Benjamin Poulain
Comment 6 2013-02-07 12:36:36 PST
Comment on attachment 186986 [details] Patch Clearing flags on attachment: 186986 Committed r142163: <http://trac.webkit.org/changeset/142163>
Benjamin Poulain
Comment 7 2013-02-07 12:36:39 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.