Closed
Bug 235188
Opened 21 years ago
Closed 21 years ago
RFE: Mozilla should have an option to run X11 in threadsafe mode
Categories
(Core Graveyard :: GFX, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: roland.mainz, Assigned: roland.mainz)
Details
Attachments
(1 file, 2 obsolete files)
1.86 KB,
patch
|
blizzard
:
superreview+
|
Details | Diff | Splinter Review |
RFE: Mozilla should have an option to run X11 in threadsafe mode.
We need such an option for various tests, incl. the new flash plugin (and to
test whether it is possible to run plugins in seperate threads to decouple them
from the main input thread). This is also a preparation to make this option the
default in one or two years...
Assignee | ||
Updated•21 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•21 years ago
|
Assignee: general → roland.mainz
Status: ASSIGNED → NEW
Assignee | ||
Updated•21 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•21 years ago
|
||
Assignee | ||
Comment 2•21 years ago
|
||
Comment on attachment 141942 [details] [diff] [review]
Patch for 2004-02-21-trunk
Requesting r=(sr= and checkin...
The patch does not change any default unless either the commandline option or
the env var is set.
Attachment #141942 -
Flags: superreview?(roc)
Attachment #141942 -
Flags: review?(roc)
Comment on attachment 141942 [details] [diff] [review]
Patch for 2004-02-21-trunk
Blizzard should look at this.
Please use #if defined(MOZ_X11) instead of that disjunction.
Attachment #141942 -
Flags: superreview?(roc)
Attachment #141942 -
Flags: superreview?(blizzard)
Attachment #141942 -
Flags: review?(roc)
Attachment #141942 -
Flags: review+
Assignee | ||
Comment 4•21 years ago
|
||
The version also fixes the problem that the env variable check only worked when
there are any additional command line arguments (and checking the env var for
each loop cycle wasn't a good idea either).
Attachment #141942 -
Attachment is obsolete: true
Assignee | ||
Updated•21 years ago
|
Attachment #141942 -
Flags: superreview?(blizzard)
Assignee | ||
Comment 5•21 years ago
|
||
Comment on attachment 142074 [details] [diff] [review]
New patch per roc's comments
Requestint sr= ... quick review would ne nice since we'd like to test mozilla
running in threadsafe mode against Xfree86V4.4.0RC3 and fix any outstanding
issues for that release.
Attachment #142074 -
Flags: superreview?(blizzard)
+ if (PL_strcmp(PR_GetEnv("MOZILLA_X11_XINITTHREADS"), "1") == 0) {
won't this crash if the variable is not defined?
Assignee | ||
Comment 7•21 years ago
|
||
Robert O'Callahan wrote:
> + if (PL_strcmp(PR_GetEnv("MOZILLA_X11_XINITTHREADS"), "1") == 0) {
> won't this crash if the variable is not defined?
No, many of the PR_*-functions allow |nsnull|-pointers.
I *really* think Chris needs to sign off on this. Please hassle him on IRC or do
whatever you have to do to get his attention.
Comment 9•21 years ago
|
||
Comment on attachment 142074 [details] [diff] [review]
New patch per roc's comments
>+ for( int i=1 ; i < argc ; i++ ) {
Please pick a consistent style. This clashes with if (foo) later. Better yet,
just use local style.
>+ if (PL_strcmp(argv[i], "-xinitthreads") == 0) {
>+ x11threadsafe = PR_TRUE;
>+ break;
>+ }
>+ }
Some vertical whitespace here, please.
>+ if (PL_strcmp(PR_GetEnv("MOZILLA_X11_XINITTHREADS"), "1") == 0) {
>+ x11threadsafe = PR_TRUE;
>+ }
This could just be shortened to:
if (PR_GetEnv("MOZILLA_X11_XINITTHREADS")) {
Attachment #142074 -
Flags: superreview?(blizzard) → superreview-
Assignee | ||
Comment 10•21 years ago
|
||
Assignee | ||
Updated•21 years ago
|
Attachment #142074 -
Attachment is obsolete: true
Assignee | ||
Comment 11•21 years ago
|
||
Christopher Blizzard wrote:
> (From update of attachment 142074 [details] [diff] [review])
> >+ for( int i=1 ; i < argc ; i++ ) {
>
> Please pick a consistent style. This clashes with if (foo) later. Better
> yet, just use local style.
Fixed. I've copied the |for()|-statement below 1:1 :)
> >+ if (PL_strcmp(argv[i], "-xinitthreads") == 0) {
> >+ x11threadsafe = PR_TRUE;
> >+ break;
> >+ }
> >+ }
>
> Some vertical whitespace here, please.
Fixed.
> >+ if (PL_strcmp(PR_GetEnv("MOZILLA_X11_XINITTHREADS"), "1") == 0) {
>
> This could just be shortened to:
>
> if (PR_GetEnv("MOZILLA_X11_XINITTHREADS")) {
Fixed.
Assignee | ||
Updated•21 years ago
|
Attachment #142952 -
Flags: superreview?(blizzard)
Updated•21 years ago
|
Attachment #142952 -
Flags: superreview?(blizzard) → superreview+
Assignee | ||
Comment 12•21 years ago
|
||
Neil checked the patch "in" a while ago
(http://bonsai.mozilla.org/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=mozilla/xpfe/bootstrap&command=DIFF_FRAMESET&file=nsAppRunner.cpp&rev1=1.408&rev2=1.409&root=/cvsroot),
marking bug as FIXED.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•