144 Commits

Author SHA1 Message Date
cls%seawood.org
c87631519f Increase BeOS event port capacity and avoid sending messages to event port if capacity is exceeded.
Thanks to Makoto Hamanaka <VYA04230@nifty.com> for the patch.
Bug #63646. r=danm


git-svn-id: svn://10.0.0.236/trunk@84525 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-07 09:03:09 +00:00
danm%netscape.com
7fd562da0d delete thread log in main thread dtor. bug 54303 code=jonsmirl@mediaone.net r=me,dougt,brendan
git-svn-id: svn://10.0.0.236/trunk@83495 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-11 21:55:47 +00:00
dmose%mozilla.org
08808bf8f9 Fix for bug 61692: IDLify nsIEventQueue and nsIEventQueueService. This makes it possible to create an nsISupports proxy for calling across threads in languages other than C++ (eg JS). r=dougt@netscape.com, r=jband@netscape.com, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@83395 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-08 04:30:36 +00:00
jband%netscape.com
16416c0908 fix warnings from fix to bug 61369
git-svn-id: svn://10.0.0.236/trunk@83323 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-06 19:40:56 +00:00
jband%netscape.com
0404f79f76 fix bug 61369. Race between nsThread Init and Main. Also additions to make the interface more useful to non-C++ code. r=brendan sr=waterson
git-svn-id: svn://10.0.0.236/trunk@83111 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-30 05:24:53 +00:00
danm%netscape.com
928279c539 ignore busy threads when determining whether to add a new thread to the pool. bugs 55032,56337,58404,60338, others. r=beard,brendan,dougt,saari
git-svn-id: svn://10.0.0.236/trunk@82984 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-28 22:38:02 +00:00
cls%seawood.org
8373cf37d8 Oops. Fixing bustage introduced by previous checkin. I forgot that XPIDL_MODULE is sometimes set by MODULE. r=blizzard Bug 59454
git-svn-id: svn://10.0.0.236/trunk@82809 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-21 00:18:46 +00:00
cls%seawood.org
6088dfbf6b Resurrect REQUIRES so that we have some sort of means to track intermodule dependencies. Bug #59454 r=blizzard@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@82785 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-20 07:16:06 +00:00
disttsc%bart.nl
be1daf13dc Checking in the correct patch for bug 59526.
git-svn-id: svn://10.0.0.236/trunk@82518 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-10 01:30:07 +00:00
edburns%acm.org
c692199dd2 bug 59526
sr=waterson
r=valeski

This bullet-proofs the code so the one thread does not exit twice.


git-svn-id: svn://10.0.0.236/trunk@82513 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-09 23:49:57 +00:00
brendan%mozilla.org
1c7fa4f26f Fix leaks for 'unregistered' monitors and locks (55498, r=beard, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@82172 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-01 22:21:28 +00:00
dougt%netscape.com
1fd4c83fd2 Replaces check for processingEvents. r=danm, darin a=hyatt
git-svn-id: svn://10.0.0.236/trunk@80358 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 19:47:12 +00:00
mkaply%us.ibm.com
7dcf7a75de #52455
r=dougt a=blizzard
These are OS/2 specific porting fixes in an XP file (plevent.c)
I'm checking it in without super-review because we desperately
need these fixes in our nightly build.


git-svn-id: svn://10.0.0.236/trunk@80228 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-03 00:20:05 +00:00
dougt%netscape.com
437cd3b772 Fixes threadpool to maximize thread usage r=wtc@netscape.com, warren@netscape.com, brendan@mozilla.org, a=brendan@mozilla.org b=36750
git-svn-id: svn://10.0.0.236/trunk@80199 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-01 05:35:03 +00:00
rayw%netscape.com
d9228441a4 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren


git-svn-id: svn://10.0.0.236/trunk@79036 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 23:57:52 +00:00
dougt%netscape.com
50c960ea59 Backing out changes which reduces the number of notifies on the event queue monitor. We still are reducing the number of native notifications.
git-svn-id: svn://10.0.0.236/trunk@78845 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 04:37:35 +00:00
dougt%netscape.com
d60401e7be PLEvent optimizations. Part of bug 50104. This reduces the number notifications. r-valeski@netscape.com
git-svn-id: svn://10.0.0.236/trunk@78761 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-11 20:59:56 +00:00
dougt%netscape.com
801cf6841e Removing Cached Monitors from plevent. They are about 5x slower than
a lock and condvar according to the nspr documentation.  r=valeski

Also I fix a problem where we would wake up from a wait without checking
any data which could cause all sorts of problems.

b=50634


git-svn-id: svn://10.0.0.236/trunk@77798 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-01 00:50:51 +00:00
warren%netscape.com
e5706a7236 Bug 46711. Removed nsAutoString travisty from nsStringKey. Introduced nsCStringKey. Made them both share the underlying string when possible. r=waterson
git-svn-id: svn://10.0.0.236/trunk@75975 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 06:19:37 +00:00
dougt%netscape.com
5425c4be74 Debuggin code
a=waterson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@73810 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 04:17:24 +00:00
cls%seawood.org
91d683a067 Removed obsolete REQUIRES variable from every Makefile.in/makefile.win
git-svn-id: svn://10.0.0.236/trunk@73583 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 08:08:04 +00:00
mkaply%us.ibm.com
c78ed655dc # 37239
r = danm, a = brendan
OS/2 bring-up - VisualAge needs a cast - using NS_STATIC_CAST per danm


git-svn-id: svn://10.0.0.236/trunk@71788 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-08 14:18:07 +00:00
pavlov%netscape.com
a271419de6 Fix for eventqueue objects leaking bug #20166. This also removes the hacked fix for bug #36361 and uses a real fix. Major overhaul of nsEventQueue and nsEventQueueService. r=waterson,brendan. tested on windows, linux and mac
git-svn-id: svn://10.0.0.236/trunk@71554 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-05 21:53:25 +00:00
pavlov%netscape.com
2941eeaf1e fix for nsbeta2+ bug 35921 (event notification outlives its event) r=danm,bryner,blizzard
git-svn-id: svn://10.0.0.236/trunk@71132 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-31 02:19:17 +00:00
brendan%mozilla.org
13b1e5ebad Space cleanup.
git-svn-id: svn://10.0.0.236/trunk@69755 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-15 06:21:49 +00:00
mkaply%us.ibm.com
f32dd26a1b # 34082
r= dougt@netscape.com
OS/2 bring up continues - Adding PR_CALLBACKs for VisualAge Compiler


git-svn-id: svn://10.0.0.236/trunk@67931 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-02 22:38:04 +00:00
mkaply%us.ibm.com
49f13d862e # 37239
r= dougt@netscape.com
OS/2 bring up continues - need another INCL_


git-svn-id: svn://10.0.0.236/trunk@67768 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-01 22:27:21 +00:00
warren%netscape.com
8f28511cda Fixed optimized build problem.
git-svn-id: svn://10.0.0.236/trunk@66662 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 05:32:59 +00:00
warren%netscape.com
e42631defd Fixed thread pool thread allocation to be more lazy (still doesn't release unused threads though). (Code adapted from dougt.)
git-svn-id: svn://10.0.0.236/trunk@66658 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 05:12:57 +00:00
pavlov%netscape.com
fa2114d6c4 use C comments
git-svn-id: svn://10.0.0.236/trunk@66062 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 04:05:53 +00:00
pavlov%netscape.com
d323248bfc hack to fix 35594 so that evaughan can land his box changes
git-svn-id: svn://10.0.0.236/trunk@66039 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 23:27:19 +00:00
scc%netscape.com
28db414fa4 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@64827 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-01 00:39:02 +00:00
rickg%netscape.com
5ac964af00 removed reference to nsString2
git-svn-id: svn://10.0.0.236/trunk@64195 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-26 23:06:01 +00:00
pavlov%netscape.com
1fdd348954 changes to let us build on MacOS X
git-svn-id: svn://10.0.0.236/trunk@62619 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-11 03:08:04 +00:00
pavlov%netscape.com
d9b37b0e5f backing out dougt's thread changes r=dougt
git-svn-id: svn://10.0.0.236/trunk@62257 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-06 01:13:20 +00:00
warren%netscape.com
d100457780 Bug 21556: Making linux be thread-safe. Making tons of classes implement threadsafe AddRef/Release. a=jar
git-svn-id: svn://10.0.0.236/trunk@62243 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-05 21:26:01 +00:00
dougt%netscape.com
20d9d73374 Adding dynamic thread allocation to thread pool. Fixes 27736.
Also fixing warning in plevent.c

r=damn, a=chofmann


git-svn-id: svn://10.0.0.236/trunk@62241 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-05 21:01:33 +00:00
danm%netscape.com
b048c0396e add API to EventQueueService for creating a monitored event queue. part of bug 25979. r=dougt r=jar
git-svn-id: svn://10.0.0.236/trunk@62207 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-04 03:17:01 +00:00
danm%netscape.com
845e7739c3 unix-only: allow system notification pipe to drain when event processing is stalled. unpegs CPU when showing certain dialogs. bug 28100. r=dp,pavlov a=jevering
git-svn-id: svn://10.0.0.236/trunk@62077 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-02 21:38:19 +00:00
danm%netscape.com
6231954eab just immortalizing some debugging gunk i recently found useful. hidden completely behind ifdefs normally opaque.
git-svn-id: svn://10.0.0.236/trunk@60544 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-12 00:27:57 +00:00
dougt%netscape.com
a05ea03df6 Fix for bug 26732. r=danm. event queue need to be able to init a plevent
git-svn-id: svn://10.0.0.236/trunk@60181 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-09 02:28:51 +00:00
wtc%netscape.com
99f9fe4467 Bugzilla bug #17101: move plevent.h and plevent.c from mozilla/nsprpub
to mozilla/xpcom/threads by landing the PLEVENT_MOVE_BRANCH.
Modified files: nsprpub/lib/ds/MANIFEST, nsprpub/lib/ds/Makefile,
nsprpub/lib/ds/Makefile.in, nsprpub/macbuild/NSPR20PPC.mcp,
nsprpub/pr/include/obsolete/protypes.h,
xpcom/macbuild/xpcomPPC.mcp, xpcom/threads/MANIFEST,
xpcom/threads/Makefile.in, xpcom/threads/makefile.win,
xpcom/threads/plevent.h


git-svn-id: svn://10.0.0.236/trunk@58964 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 00:27:37 +00:00
wtc%netscape.com
3cde13952c Bugzilla bug #17101: added plevent.h (same as
mozilla/nsprpub/lib/ds/plevent.h, revision 3.12) and plevent.c
(same as mozilla/nsprpub/lib/ds/plevent.c, revision 3.36) to
mozilla/xpcom/threads.  These two new files have not been added
to the makefiles or project file, so they are not picked up by
the build.


git-svn-id: svn://10.0.0.236/trunk@58589 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 14:48:51 +00:00
scc%netscape.com
b414827be6 replaced |nsVector| with |nsVoidArray| as per bug #11666. r=brendan
git-svn-id: svn://10.0.0.236/trunk@58132 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-18 22:19:52 +00:00
dougt%netscape.com
f21187a4e6 fix for 22943. removing xp-mac specific code from xp interface, enabling asserts
on the mac. r= sdagley


git-svn-id: svn://10.0.0.236/trunk@56985 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-06 20:08:14 +00:00
dougt%netscape.com
85bb9d5b20 Fix for bug 22933 submitted by jonas.utterstrom@vittran.norrnod.se. r=dougt.
git-svn-id: svn://10.0.0.236/trunk@56975 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-06 19:46:44 +00:00
sspitzer%netscape.com
3823830445 turn off assertions until dougt fixes #22943. r=dougt
git-svn-id: svn://10.0.0.236/trunk@56699 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-04 00:14:37 +00:00
dougt%netscape.com
a5052c7d8c Adding back the assert since I fixed the problem in the GTK appshell.
git-svn-id: svn://10.0.0.236/trunk@56241 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-20 23:12:18 +00:00
sspitzer%netscape.com
8ab190c77c make it so dougt's assertions only happen for him.
there is no reason the whole world should see a billion printfs.


git-svn-id: svn://10.0.0.236/trunk@56195 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-18 10:17:09 +00:00
valeski%netscape.com
77f1824c47 21723. a=chofmann, r=rpotts. Laying ground work for FTP checkin. This fixes an oppressive event queue api method. We weren't returning the event to be processed. subsequently the event was being lost. There are currently *no* users of this method in the tree.
git-svn-id: svn://10.0.0.236/trunk@55988 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-14 22:06:17 +00:00