Closed
Bug 1249738
Opened 9 years ago
Closed 9 years ago
get rid of the static constructor for hal/Hal.cpp
Categories
(Core :: Hardware Abstraction Layer (HAL), defect)
Core
Hardware Abstraction Layer (HAL)
Tracking
()
RESOLVED
FIXED
mozilla47
| Tracking | Status | |
|---|---|---|
| firefox47 | --- | fixed |
People
(Reporter: tbsaunde, Assigned: tbsaunde)
Details
Attachments
(6 files)
|
1.91 KB,
patch
|
dhylands
:
review+
|
Details | Diff | Splinter Review |
|
1.87 KB,
patch
|
dhylands
:
review+
|
Details | Diff | Splinter Review |
|
2.31 KB,
patch
|
dhylands
:
review+
|
Details | Diff | Splinter Review |
|
2.14 KB,
patch
|
dhylands
:
review+
|
Details | Diff | Splinter Review |
|
1.57 KB,
patch
|
dhylands
:
review+
|
Details | Diff | Splinter Review |
|
1.62 KB,
patch
|
dhylands
:
review+
|
Details | Diff | Splinter Review |
making the ctors for the static objects in this file constexpr is awkward because we'd need to make a static TArray class. So it seems easier to hide the statics inside functions that lazily create them when needed and return
a reference to them. An additional benefit of doing this is that we can make sure all accesses to the object happen on the main thread. Please enter the summary (first line) and description (other lines). Lines
| Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8721413 -
Flags: review?(dhylands)
| Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8721414 -
Flags: review?(dhylands)
| Assignee | ||
Comment 3•9 years ago
|
||
Attachment #8721415 -
Flags: review?(dhylands)
| Assignee | ||
Comment 4•9 years ago
|
||
Attachment #8721416 -
Flags: review?(dhylands)
| Assignee | ||
Comment 5•9 years ago
|
||
Attachment #8721417 -
Flags: review?(dhylands)
| Assignee | ||
Comment 6•9 years ago
|
||
Attachment #8721418 -
Flags: review?(dhylands)
Comment 7•9 years ago
|
||
Comment on attachment 8721413 [details] [diff] [review]
make sBatteryObservers a function static
Review of attachment 8721413 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM
Attachment #8721413 -
Flags: review?(dhylands) → review+
Updated•9 years ago
|
Attachment #8721414 -
Flags: review?(dhylands) → review+
Updated•9 years ago
|
Assignee: nobody → tbsaunde+mozbugs
Updated•9 years ago
|
Attachment #8721415 -
Flags: review?(dhylands) → review+
Updated•9 years ago
|
Attachment #8721416 -
Flags: review?(dhylands) → review+
Updated•9 years ago
|
Attachment #8721417 -
Flags: review?(dhylands) → review+
Comment 8•9 years ago
|
||
Comment on attachment 8721418 [details] [diff] [review]
make sSystemTimezoneChangeObservers a function static
Review of attachment 8721418 [details] [diff] [review]:
-----------------------------------------------------------------
I like the main-thread check (for all of these). Excellent.
Attachment #8721418 -
Flags: review?(dhylands) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/73c742908f3f
https://hg.mozilla.org/integration/mozilla-inbound/rev/5e27306cd8fb
https://hg.mozilla.org/integration/mozilla-inbound/rev/4b7370854a0b
https://hg.mozilla.org/integration/mozilla-inbound/rev/0f8651cfdccb
https://hg.mozilla.org/integration/mozilla-inbound/rev/53d07f5c025b
https://hg.mozilla.org/integration/mozilla-inbound/rev/a871b30278aa
Comment 10•9 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/73c742908f3f
https://hg.mozilla.org/mozilla-central/rev/5e27306cd8fb
https://hg.mozilla.org/mozilla-central/rev/4b7370854a0b
https://hg.mozilla.org/mozilla-central/rev/0f8651cfdccb
https://hg.mozilla.org/mozilla-central/rev/53d07f5c025b
https://hg.mozilla.org/mozilla-central/rev/a871b30278aa
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in
before you can comment on or make changes to this bug.
Description
•