28 Commits

Author SHA1 Message Date
roc+%cs.cmu.edu
f1a0afa78e Bug 404870. Don't allow nsThread::PutEvent to succeed when the thread is no longer able to process the event. This stops us leaking the event and anything hanging off it. r+sr=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@240482 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-05 02:17:15 +00:00
bzbarsky%mit.edu
f4d44ca58c Relanding bug 326777, r=bsmedberg, sr=jst
git-svn-id: svn://10.0.0.236/trunk@229650 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-11 00:57:17 +00:00
bzbarsky%mit.edu
eb3f2e8e52 Backing out to fix red
git-svn-id: svn://10.0.0.236/trunk@229585 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-10 04:07:45 +00:00
bzbarsky%mit.edu
9d50498a31 Make sure that we push a null JSContext on the current thread's XPConnect stack
before processing events.  Bug 326777, r=bsmedberg, sr=jst


git-svn-id: svn://10.0.0.236/trunk@229584 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-10 03:48:07 +00:00
darin%meer.net
42edf059cf landing patch for bug 326273 "Implement nsIThreadManager" (Mac portions by Mark Mentovai) with reviews from bienvenu, bsmedberg, bzbarsky, josh, roc, and ssieb
git-svn-id: svn://10.0.0.236/trunk@196254 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-10 17:30:15 +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
bryner%brianryner.com
b5ccad4460 Bug 229875 - eliminate unnecssary public/virtual destructors. This patch changes all refcounted classes under xpcom/, which aren't inherited from or used on the stack, to have private, nonvirtual destructors. r=dougt, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@151359 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-15 06:14:18 +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
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
25b069207e Fixes bug 84489. Ensures that worker threads can not process the same reque
st at the same time. r-danm@netscape.com, sr-darin@netscape.com, a-clayton@n
etscape.com


git-svn-id: svn://10.0.0.236/trunk@96929 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-12 18:35:23 +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
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
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
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
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
warren%netscape.com
0216c948bf Adding includes for nsIThreadPool.h and nsIRunnable.h in anticipation of idl files.
git-svn-id: svn://10.0.0.236/trunk@47564 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 09:49:18 +00:00
hshaw%netscape.com
11378c0a71 include prcmon.h for nsThread.h, until unix defines NS_MT_SUPPORTED for nsISupports.h
git-svn-id: svn://10.0.0.236/trunk@30092 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 07:11:31 +00:00
warren%netscape.com
9b90ba668c Fixed thread problems.
git-svn-id: svn://10.0.0.236/trunk@27336 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-13 18:15:27 +00:00
warren%netscape.com
a823e367c4 Fixed thread pool shutdown.
git-svn-id: svn://10.0.0.236/trunk@26402 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-06 01:42:01 +00:00
warren%netscape.com
39d6bda2fa Mostly works now, except for nsIThreadPool::Join
git-svn-id: svn://10.0.0.236/trunk@26323 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-05 21:02:24 +00:00
warren%netscape.com
2fde0b1900 Added nsIThread and nsIThreadPool.
git-svn-id: svn://10.0.0.236/trunk@26037 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-02 09:20:44 +00:00