timeless%mozdev.org
733f8a76f0
Bug 296506 [@ nsThread::Main]
...
change Init to handle alloc failures and refuse multiple concurrent runs of a thread instance
r=dougt a=asa
git-svn-id: svn://10.0.0.236/trunk@174283 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-08 07:33:39 +00:00
bsmedberg%covad.net
dffbd3ccc3
bug 257188 - check initialization of nsThread patch by CTho <cst@andrew.cmu.edu> r=dougt
...
git-svn-id: svn://10.0.0.236/trunk@161431 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-28 20:11:15 +00:00
timeless%mozdev.org
984b16085d
Bug 256615 crash when calling nsIThread.state before calling nsIThread.init [@ PR_GetThreadState]
...
patch by cst@andrew.cmu.edu r=dougt
git-svn-id: svn://10.0.0.236/trunk@161312 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-26 12:31:56 +00:00
darin%meer.net
5ae55c02e1
fixes bug 243151 "Bogus assertion: nsThread::kIThreadSelfIndex != 0" r=timeless,wtc
...
git-svn-id: svn://10.0.0.236/trunk@156251 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-11 18:33:32 +00:00
bsmedberg%covad.net
ff6cab48ca
Allow XPCOM to be restarted. r+sr=darin with grudging consent from dougt. Bug 239819
...
git-svn-id: svn://10.0.0.236/trunk@156232 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-11 09:38:50 +00:00
gerv%gerv.net
210853d71e
Bug 236613: change to MPL/LGPL/GPL tri-license.
...
git-svn-id: svn://10.0.0.236/trunk@155067 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 14:21:17 +00:00
darin%meer.net
bc1bb52b19
fixes bug 210125 "need to be able to AsyncWait for closure only" r=dougt sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@147597 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-06 01:46:31 +00:00
dbaron%dbaron.org
6ed727cbe8
Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
...
git-svn-id: svn://10.0.0.236/trunk@136028 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 23:19:20 +00:00
bzbarsky%mit.edu
517741de81
Fix assertion from out-of-bounds array access. Bug 175440, r=timeless, sr=alecf
...
git-svn-id: svn://10.0.0.236/trunk@133492 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-09 17:43:33 +00:00
dougt%netscape.com
68814c1e49
175932. UMR: PostTimerEvent() does not check return value from GetPRThread(). Thanks to Andrew Schultz for pointing this out. r=pavlov, sr=darin. Also includes 175440 - using nsCOMArray in nsThreadPool, patch by bzbarsky@mit.edu
...
git-svn-id: svn://10.0.0.236/trunk@133374 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-08 04:46:58 +00:00
dougt%netscape.com
e289284076
166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
...
git-svn-id: svn://10.0.0.236/trunk@129050 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 17:13:19 +00:00
timeless%mac.com
36dfb9bef0
Bug 166371 Crashes at [@ nsThreadPool::Shutdown] in Trunk, N700
...
r=bz sr=darin
git-svn-id: svn://10.0.0.236/trunk@128815 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-04 06:45:10 +00:00
timeless%mac.com
800cde8566
Bug 156633 replace PR_CurrentThread with PR_GetCurrentThread
...
patch by riceman+bmo@mail.rit.edu r=morse,dougt,dveditz,timeless sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@128704 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-03 14:51:05 +00:00
bbaetz%student.usyd.edu.au
c4c07feb0a
Bug 142072 - Don't free a loginfo structure which we don't own (nspr does)
...
r=wtc, sr=bryner
git-svn-id: svn://10.0.0.236/trunk@128058 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-25 05:55:50 +00:00
bryner%netscape.com
d63c986f4d
Fix all of the warnings about member initializer ordering in constructors (bug 156135). r=timeless, sr=jag.
...
git-svn-id: svn://10.0.0.236/trunk@124756 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 07:56:50 +00:00
seawood%netscape.com
a7c7e77b8b
Add CPP_THROW_NEW macro to the build system. This macro should be used when defining a local |operator new| function. It will be set to an empty throw function by default on all platforms except mac CW builds. This will allow us to not crash on systems that expect |operator new| to throw an exception by default and will suppress compiler warnings about how |operator new| should throw an exception instead of returning NULL.
...
Bug 149032 r=timeless sr=scc
git-svn-id: svn://10.0.0.236/trunk@124526 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 20:25:30 +00:00
dougt%netscape.com
fe86486377
Fixes bugs 149745 148918 149715 149730 149754 129959. Cleanup of nsIFile and nsILocalFile interfaces, supporting do_GetInterface in embedding via xcom glue, and general cleanup of shutdown. r=various, sr=shaver@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@123042 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 19:26:04 +00:00
dougt%netscape.com
7709dc95af
initalizes member variables in thread poll. 141479. r=dp, sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@121277 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-10 20:48:45 +00:00
dougt%netscape.com
d3046e16dd
Add IsMainThread to nsIThread. r=danm@netscape.com, sr=darin@netscape.com 112397
...
git-svn-id: svn://10.0.0.236/trunk@109279 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:06:32 +00:00
pavlov%netscape.com
6d74812810
fixing bug 107106 r=valeski sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@106884 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 00:05:19 +00:00
gerv%gerv.net
13afb6d0f9
Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
...
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +00:00
dougt%netscape.com
8735a6cb14
fixes bug 84489. ensures that workthreads never process the same request at the same time. r=danm@netscape.com, sr=darin@netscape.com, a=clayton@netscape.com.
...
git-svn-id: svn://10.0.0.236/trunk@96928 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-12 18:32:26 +00:00
kandrot%netscape.com
d29bc03ec5
bug #77233 , r=waterson, sr=brendan Changed a delete to a free for a malloced ptr
...
git-svn-id: svn://10.0.0.236/trunk@94951 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 05:55:15 +00:00
cls%seawood.org
4846ed0caf
Let the use of PR_Log() be controlled by a toplevel build option. All places that set FORCE_PR_LOG to force logging on need to wrap that #define FORCE_PR_LOG in a MOZ_LOGGING ifdef.
...
It's on by default. Set
--disable-logging (unix)
NO_LOGGING=1 (win32)
moz_logging = 0 (mac)
to turn it off globally.
Bug #53226 r=sspitzer,leaf,sfraser
git-svn-id: svn://10.0.0.236/trunk@94048 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-05 10:18:53 +00:00
dougt%netscape.com
1acd19bbe8
Fixes a problem where hreadpool optimistically kills worker threads. r=darin@netscape.com, sr=waterson@netscape.com, b=76198
...
git-svn-id: svn://10.0.0.236/trunk@93114 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-26 05:30:26 +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
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
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
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
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
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
dmose%mozilla.org
0efb7c174c
updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@52910 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:43:54 +00:00
warren%netscape.com
49e47e3066
Fixed build warnings.
...
git-svn-id: svn://10.0.0.236/trunk@49969 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 08:51:48 +00:00
valeski%netscape.com
780e7132fd
15300 r=warren. Changed NS_NewThread api to default to PR_UNJOINABLE_THREAD, also added new NS_NewThread() function so you don't have to combine the runnable w/ thread creation. added threads to xpcom init so you can create them w/ the com mgr.
...
git-svn-id: svn://10.0.0.236/trunk@49617 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 23:30:06 +00:00
warren%netscape.com
2bdfab8723
Taking out the damn nsCOMPtr for nsThreadPool for Mac!
...
git-svn-id: svn://10.0.0.236/trunk@48420 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 22:35:06 +00:00
warren%netscape.com
4a15ebde22
fixed refcounting in nsThread so threads and runnables are freed
...
git-svn-id: svn://10.0.0.236/trunk@48375 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:54:23 +00:00
scc%netscape.com
56d5ad0b43
got rid of |NS_IMPL_ISUPPORTS|, where possible, in favor of |NS_IMPL_ISUPPORTS0| or ...1 according to the specific use; got rid of |NS_DEFINE_IID| where possible, or where it should have been |NS_DEFINE_CID|; fixed bad implementations of |QueryInterface|, where possible. Built, tested apprunner, reviewed the changes with hyatt (since he was around to look) before checking in
...
git-svn-id: svn://10.0.0.236/trunk@44139 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-23 10:14:16 +00:00
warren%netscape.com
34a55c9d19
Added more logging code.
...
git-svn-id: svn://10.0.0.236/trunk@43179 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 08:13:07 +00:00
warren%netscape.com
5b627064e6
Added missing release.
...
git-svn-id: svn://10.0.0.236/trunk@35937 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-19 22:22:38 +00:00
dveditz%netscape.com
8b1ee7529d
proxy can now find main thread
...
git-svn-id: svn://10.0.0.236/trunk@35630 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 03:26:37 +00:00
warren%netscape.com
07f8f36a84
Added PR_LOG stuff.
...
git-svn-id: svn://10.0.0.236/trunk@35355 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 04:57:07 +00:00
danm%netscape.com
fb18842156
moved GetPrimordialThread from nsAppShellService to nsThread, as suggested by warren
...
git-svn-id: svn://10.0.0.236/trunk@35060 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 03:30:38 +00:00
alecf%netscape.com
3e1c511db7
stop using [] operator on nsISupportsArray - going away for scriptability.
...
git-svn-id: svn://10.0.0.236/trunk@33366 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-02 00:07:54 +00:00
dp%netscape.com
befa259a88
Landing xpcom20/21 branch.
...
git-svn-id: svn://10.0.0.236/trunk@32644 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 01:38:36 +00:00