Closed
Bug 1406542
Opened 7 years ago
Closed 7 years ago
Clean up Pthread differences in MinGW build
Categories
(Core :: General, enhancement, P1)
Core
General
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox58 | --- | fixed |
People
(Reporter: tjr, Assigned: tjr)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [tor])
Attachments
(1 file)
Thanks to Bug 1349912 we do actually have pthread in the MinGW Windows build, but lots of subprojects have windows configs that say they don't. These include (at least):
- libvpx
- libaom
We should try turning pthread on and see if this breaks things.
In particular this is desirable because redefining the macro with a new value results in a warning-as-error.
Comment hidden (mozreview-request) |
Updated•7 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P1
Assignee | ||
Comment 2•7 years ago
|
||
I know I need to correct the configuration generation for both libraries, but do you have any guesses if flipping this could cause problems in the library?
I'm not sure who owns libvpx, so feel free to redirect...
Flags: needinfo?(giles)
Flags: needinfo?(cpearce)
Comment 3•7 years ago
|
||
I wouldn't expect problems. They both just implement their own pthread emulation on top of the win32 thread api, so using mingw's implementation instead should still work, possibly better. I suggest just trying it.
One thing I noticed in aom/vpx_thread.h is that MAX_DECODE_THREADS is limited to 8 in part because of "not enough semaphors...on windows". https://dxr.mozilla.org/mozilla-central/source/media/libvpx/libvpx/vpx_util/vpx_thread.h#24 Hopefully mingw can manage at least that many. :)
Flags: needinfo?(giles)
Flags: needinfo?(cpearce)
Comment hidden (mozreview-request) |
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8916789 [details]
Bug 1406542 Enable PTHREAD for vpx and aom under MinGW because we do in fact have them.
https://reviewboard.mozilla.org/r/187842/#review197840
Looks reasonable to me. Thanke for updating the source generation scripts!
Attachment #8916789 -
Flags: review?(giles) → review+
Pushed by rgiles@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2fa7cfb4ce84
Enable PTHREAD for vpx and aom under MinGW because we do in fact have them. r=rillian
Comment 7•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in
before you can comment on or make changes to this bug.
Description
•