WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
211010
Use static initialized Lock instead of LazyNeverDestroyed<Lock>
https://bugs.webkit.org/show_bug.cgi?id=211010
Summary
Use static initialized Lock instead of LazyNeverDestroyed<Lock>
Yusuke Suzuki
Reported
2020-04-24 23:00:16 PDT
Use static initialized Lock instead of LazyNeverDestroyed<Lock>
Attachments
Patch
(4.29 KB, patch)
2020-04-24 23:01 PDT
,
Yusuke Suzuki
mark.lam
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Yusuke Suzuki
Comment 1
2020-04-24 23:01:09 PDT
Created
attachment 397543
[details]
Patch
Mark Lam
Comment 2
2020-04-24 23:05:38 PDT
Comment on
attachment 397543
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=397543&action=review
r=me
> Source/WebCore/Modules/webgpu/WebGPUDevice.cpp:110 > +static Lock deviceMutex;
Why not just declare it as a static inside its accessor function? Ditto below.
Yusuke Suzuki
Comment 3
2020-04-25 17:16:47 PDT
Comment on
attachment 397543
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=397543&action=review
Thanks!
>> Source/WebCore/Modules/webgpu/WebGPUDevice.cpp:110 >> +static Lock deviceMutex; > > Why not just declare it as a static inside its accessor function? Ditto below.
Yeah, right. We can put it in a function. Fixed!
Yusuke Suzuki
Comment 4
2020-04-25 17:32:04 PDT
Committed
r260714
: <
https://trac.webkit.org/changeset/260714
>
Radar WebKit Bug Importer
Comment 5
2020-04-25 17:33:14 PDT
<
rdar://problem/62378157
>
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