WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
109130
Upstream iOS isWebThread() and isUIThread()
https://bugs.webkit.org/show_bug.cgi?id=109130
Summary
Upstream iOS isWebThread() and isUIThread()
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
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Benjamin Poulain
Comment 1
2013-02-06 20:43:05 PST
Created
attachment 186986
[details]
Patch
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
Comment on
attachment 186986
[details]
Patch
Attachment 186986
[details]
did not pass win-ews (win): Output:
http://queues.webkit.org/results/16443020
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.
Top of Page
Format For Printing
XML
Clone This Bug