Граф коммитов

293 Коммитов

Автор SHA1 Сообщение Дата
dmose%mozilla.org 6ed07118de 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 2000-12-08 04:30:36 +00:00
jband%netscape.com 469d258cc8 fix warnings from fix to bug 61369 2000-12-06 19:40:56 +00:00
jband%netscape.com c7a4242a1a 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 2000-11-30 05:24:53 +00:00
danm%netscape.com 5158e1cb08 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 2000-11-28 22:38:02 +00:00
cls%seawood.org fc9c54cb3d Oops. Fixing bustage introduced by previous checkin. I forgot that XPIDL_MODULE is sometimes set by MODULE. r=blizzard Bug 59454 2000-11-21 00:18:46 +00:00
cls%seawood.org 8bd122b3d5 Resurrect REQUIRES so that we have some sort of means to track intermodule dependencies. Bug #59454 r=blizzard@mozilla.org 2000-11-20 07:16:06 +00:00
disttsc%bart.nl 26a448532e Checking in the correct patch for bug 59526. 2000-11-10 01:30:07 +00:00
edburns%acm.org 611dee4bab bug 59526
sr=waterson
r=valeski

This bullet-proofs the code so the one thread does not exit twice.
2000-11-09 23:49:57 +00:00
brendan%mozilla.org 3f952fb855 Fix leaks for 'unregistered' monitors and locks (55498, r=beard, sr=jband). 2000-11-01 22:21:28 +00:00
dougt%netscape.com fa015f33ba Replaces check for processingEvents. r=danm, darin a=hyatt 2000-10-04 19:47:12 +00:00
mkaply%us.ibm.com 86276db0b2 #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.
2000-10-03 00:20:05 +00:00
dougt%netscape.com ac9f11352d Fixes threadpool to maximize thread usage r=wtc@netscape.com, warren@netscape.com, brendan@mozilla.org, a=brendan@mozilla.org b=36750 2000-10-01 05:35:03 +00:00
rayw%netscape.com 6cc70ebd6c Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren
2000-09-13 23:57:52 +00:00
dougt%netscape.com da0055fc07 Backing out changes which reduces the number of notifies on the event queue monitor. We still are reducing the number of native notifications. 2000-09-12 04:37:35 +00:00
dougt%netscape.com 30657e47ae PLEvent optimizations. Part of bug 50104. This reduces the number notifications. r-valeski@netscape.com 2000-09-11 20:59:56 +00:00
dougt%netscape.com ca4c2a2039 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
2000-09-01 00:50:51 +00:00
warren%netscape.com 4af572e4c1 Bug 46711. Removed nsAutoString travisty from nsStringKey. Introduced nsCStringKey. Made them both share the underlying string when possible. r=waterson 2000-08-10 06:19:37 +00:00
dougt%netscape.com 4004bfcfc8 Debuggin code
a=waterson@netscape.com
2000-07-07 04:17:24 +00:00
cls%seawood.org e1e6c5760f Removed obsolete REQUIRES variable from every Makefile.in/makefile.win 2000-06-30 08:08:04 +00:00
mkaply%us.ibm.com 0c8602481d # 37239
r = danm, a = brendan
OS/2 bring-up - VisualAge needs a cast - using NS_STATIC_CAST per danm
2000-06-08 14:18:07 +00:00
pavlov%netscape.com 5e8a833f39 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 2000-06-05 21:53:25 +00:00
pavlov%netscape.com 83ba640b6c fix for nsbeta2+ bug 35921 (event notification outlives its event) r=danm,bryner,blizzard 2000-05-31 02:19:17 +00:00
brendan%mozilla.org fa32280b9c Space cleanup. 2000-05-15 06:21:49 +00:00
mkaply%us.ibm.com 11949af38c # 34082
r= dougt@netscape.com
OS/2 bring up continues - Adding PR_CALLBACKs for VisualAge Compiler
2000-05-02 22:38:04 +00:00
mkaply%us.ibm.com 6b9f866b4a # 37239
r= dougt@netscape.com
OS/2 bring up continues - need another INCL_
2000-05-01 22:27:21 +00:00
warren%netscape.com 02dfd094cb Fixed optimized build problem. 2000-04-21 05:32:59 +00:00
warren%netscape.com b63cd30bcf Fixed thread pool thread allocation to be more lazy (still doesn't release unused threads though). (Code adapted from dougt.) 2000-04-21 05:12:57 +00:00
pavlov%netscape.com fa7bb1ae70 use C comments 2000-04-15 04:05:53 +00:00
pavlov%netscape.com 9913f693e1 hack to fix 35594 so that evaughan can land his box changes 2000-04-14 23:27:19 +00:00
scc%netscape.com 080a801eb7 making string conversions explicit 2000-04-01 00:39:02 +00:00
rickg%netscape.com b4fc6406c5 removed reference to nsString2 2000-03-26 23:06:01 +00:00
pavlov%netscape.com 33ce2d4e90 changes to let us build on MacOS X 2000-03-11 03:08:04 +00:00
pavlov%netscape.com c488fb37a7 backing out dougt's thread changes r=dougt 2000-03-06 01:13:20 +00:00
warren%netscape.com 7e37f4f478 Bug 21556: Making linux be thread-safe. Making tons of classes implement threadsafe AddRef/Release. a=jar 2000-03-05 21:26:01 +00:00
dougt%netscape.com ac56bd5fd8 Adding dynamic thread allocation to thread pool. Fixes 27736.
Also fixing warning in plevent.c

r=damn, a=chofmann
2000-03-05 21:01:33 +00:00
danm%netscape.com 58940ea9ca add API to EventQueueService for creating a monitored event queue. part of bug 25979. r=dougt r=jar 2000-03-04 03:17:01 +00:00
danm%netscape.com 86a45fdee8 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 2000-03-02 21:38:19 +00:00
danm%netscape.com 6443e7125b just immortalizing some debugging gunk i recently found useful. hidden completely behind ifdefs normally opaque. 2000-02-12 00:27:57 +00:00
dougt%netscape.com b45f04471d Fix for bug 26732. r=danm. event queue need to be able to init a plevent 2000-02-09 02:28:51 +00:00
wtc%netscape.com cc511c0483 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
2000-01-28 00:27:37 +00:00
wtc%netscape.com 834b92b00e 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.
2000-01-25 14:48:51 +00:00
scc%netscape.com 5604d0534b replaced |nsVector| with |nsVoidArray| as per bug #11666. r=brendan 2000-01-18 22:19:52 +00:00
dougt%netscape.com 8b3220b6ec fix for 22943. removing xp-mac specific code from xp interface, enabling asserts
on the mac. r= sdagley
2000-01-06 20:08:14 +00:00
dougt%netscape.com d186802516 Fix for bug 22933 submitted by jonas.utterstrom@vittran.norrnod.se. r=dougt. 2000-01-06 19:46:44 +00:00
sspitzer%netscape.com 1cf9a440d1 turn off assertions until dougt fixes #22943. r=dougt 2000-01-04 00:14:37 +00:00
dougt%netscape.com 6d14e5b99c Adding back the assert since I fixed the problem in the GTK appshell. 1999-12-20 23:12:18 +00:00
sspitzer%netscape.com 08e592761d make it so dougt's assertions only happen for him.
there is no reason the whole world should see a billion printfs.
1999-12-18 10:17:09 +00:00
valeski%netscape.com 0cb6d145e1 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. 1999-12-14 22:06:17 +00:00
dougt%netscape.com 257378e8a2 Added an assert and return so that eventQs only get
processed on the owning thread.  This fixes at least
18005 and 17065.  r=damn@netscape.com, a=chofmann.
1999-12-13 23:05:31 +00:00
dp%netscape.com 5afad59516 Removing usage of nsComponentManager.h r=selmer 1999-12-08 01:59:32 +00:00
dp%netscape.com 10aaba597e NS_GET_IID(). Thanks to patch from pp@ludasdesign.com r=dp@netscape.com 1999-12-01 00:21:53 +00:00
dougt%netscape.com 67b387409f Fix for 18078. R=mstoltz,warren 1999-11-30 00:14:55 +00:00
warren%netscape.com 4ab4ee4d4e Eliminated the libs build pass. 1999-11-28 03:05:01 +00:00
dougt%netscape.com a234345645 fix for bug 18114. Adding simple accessor to PL_WaitForEvent. 1999-11-16 16:04:14 +00:00
jband%netscape.com ed996a6073 r=waterson. add explicit lock and unlock to nsAutoLock. This allows us to use the autolock to cover a scope and to also explicitly bracket a call out to some other function with an unlock and relock 1999-11-15 22:15:27 +00:00
pepper%netscape.com 5c61fc51b8 Changed friend declaration to make HP Compilers Happy.
r=mgleeson
1999-11-11 00:39:59 +00:00
dmose%mozilla.org 8535dda53e updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
danm%netscape.com 64746bb9f1 instead of using the thread hashtable's enumerator while processing events (a Mac-specific habit), build and use a parallel linked list structure. hashtable and list want unification someday. fixes bug 16551. r:brendan@netscape.com 1999-11-03 05:30:49 +00:00
danm%netscape.com c26d0a076e fixing obvious flaw in Unlink. r:waterson@netscape.com 1999-10-20 08:35:04 +00:00
danm%netscape.com bd88e47084 retire event queues even on Windows when they're no longer used. part of bug 15856. r:hyatt@netscape.com 1999-10-19 22:00:12 +00:00
danm%netscape.com a07781e709 added CreateFromIThread. r:valeski@netscape.com 1999-10-19 19:18:27 +00:00
danm%netscape.com 4b0be45b74 event queues own and delete themselves when they're done. bug 15856 r:hyatt@netscape.com 1999-10-18 14:59:57 +00:00
danm%netscape.com 23485570b4 new r:hyatt@netscape.com 1999-10-18 14:57:07 +00:00
warren%netscape.com c0c613c804 Fixed build warnings. 1999-10-06 08:51:48 +00:00
valeski%netscape.com a05208badc 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. 1999-10-01 23:30:06 +00:00
shaver%netscape.com 940f9ecaa3 need to use different module names to avoid overwriting xpcom.xpt 1999-09-21 14:12:26 +00:00
warren%netscape.com 1fed8a8658 Taking out the damn nsCOMPtr for nsThreadPool for Mac! 1999-09-20 22:35:06 +00:00
warren%netscape.com 090b763079 fixed refcounting in nsThread so threads and runnables are freed 1999-09-20 20:54:23 +00:00
briano%netscape.com 12f9f9743e General cleanup. 1999-09-18 02:12:56 +00:00
brendan%mozilla.org 2bb8bfa744 *** empty log message *** 1999-09-17 23:21:29 +00:00
cls%seawood.org ad1c348b2c For gcc >= 2.95, add empty throw() function to remove warnings about returning null from operator new 1999-09-15 22:00:12 +00:00
warren%netscape.com a4b88eae3e Removed this in favor of idl 1999-09-15 21:49:21 +00:00
warren%netscape.com a18c45690f Making nsIThread nsIRunnable and nsIThreadPool idl interfaces. 1999-09-15 21:41:20 +00:00
warren%netscape.com c9ec17df19 idl versions 1999-09-15 09:51:46 +00:00
warren%netscape.com 0b7d06c326 Adding includes for nsIThreadPool.h and nsIRunnable.h in anticipation of idl files. 1999-09-15 09:49:18 +00:00
warren%netscape.com f117a14a85 Added nsIRunnable.h and nsIThreadPool.h temporarily. 1999-09-13 23:45:31 +00:00
warren%netscape.com 3baedc96b9 Added temporarily, until I can get nsIThreadPool.h added to all the .cpp files, and then switch over to nsIThreadPool.idl 1999-09-13 23:43:02 +00:00
warren%netscape.com db31a55c62 Added temporarily, until I can get nsIRunnable.h added to all the .cpp files, and then switch over to nsIRunnable.idl 1999-09-13 23:40:52 +00:00
cls%seawood.org 9b9b749fde Removed gcc 2.95+ ifdefs to trade one annoying warning for a less annoying one. 1999-09-12 12:03:20 +00:00
waterson%netscape.com dc43fec597 Fix variable scoping problem that busts #ifdef DEBUG build. 1999-09-07 05:40:22 +00:00
sdagley%netscape.com 5aa13175f4 Fix build bustage for brendan. Some platforms actually scope variables to the for loop where they're declared. 1999-09-07 00:08:30 +00:00
brendan%mozilla.org 0766d265ef Pick nits. 1999-09-06 23:00:17 +00:00
brendan%mozilla.org 943ad089f9 Deadlock detection hacks. 1999-09-06 19:28:56 +00:00
brendan%mozilla.org 7167674805 Initial version. 1999-09-06 19:16:25 +00:00
cyeh%netscape.com cc2825cbe0 Remove IGNORE_MANIFEST=1. It doesn't do anything and it confuses people. 1999-09-01 00:54:34 +00:00
scc%netscape.com 0454213f91 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 1999-08-23 10:14:16 +00:00
warren%netscape.com 63a541d49e Added more logging code. 1999-08-11 08:13:07 +00:00
cls%seawood.org 9eea17be39 Various fixes to let the tree compile with gcc 2.95:
String constants are now (const char *)s and must be explicitly cast to (char *).
operator new is expected to be empty or throw an expection instead of returning null. (ifdef'd for gcc 2.95+)
Stricter checks on register clobbering in embedded asm. (at least I think that's what it is)
Expects the main function to return int, not something similiar to it like PRInt32.

Still requires a tweak to remove -mno-486 from NSPR's *.mk files.
1999-08-07 06:01:31 +00:00
ramiro%netscape.com b5de6fd70c Match the window DEFINES. Also took out -D_IMPL_NS_WIDGET, which smells
like a cut and paste error.
1999-07-07 08:16:57 +00:00
toshok%hungry.com b99135a491 squelch unused parameter warnings. 1999-07-07 04:17:45 +00:00
ramiro%netscape.com b86c78a296 Separate the widget and gfx toolkits into two variables.
Instead of MOZ_TOOLKIT, we now have MOZ_WIDGET_TOOLKIT and MOZ_GFX_TOOLKIT.
There is also a new configure flag, --enable-gfx-toolkit which does what its
name implies.
The configure script should continue to work as before.
1999-07-02 13:06:48 +00:00
scc%netscape.com 54c96baa72 |nsISupports::GetIID()| --> |nsCOMTypeInfo<nsISupports>::GetIID()| 1999-06-29 21:01:31 +00:00
scc%netscape.com d049be3c31 Added |GetIID()| 1999-06-29 20:28:56 +00:00
sspitzer%netscape.com 4ca17620eb fix warnings 1999-06-26 04:17:58 +00:00
warren%netscape.com 4747af4f2d Added missing release. 1999-06-19 22:22:38 +00:00
warren%netscape.com 9f1b058d56 Added assertions. 1999-06-19 22:22:16 +00:00
warren%netscape.com 087d61993b Changed nsAutoMonitor to nsAutoCMonitor (cached monitors). 1999-06-16 04:15:08 +00:00
dveditz%netscape.com de1c9d7762 proxy can now find main thread 1999-06-16 03:26:37 +00:00
warren%netscape.com 8882c50da2 Added PR_LOG stuff. 1999-06-15 04:57:07 +00:00
dougt%netscape.com 785a8d1e18 Adding IsQueueOnCurrentThread(). 1999-06-14 20:20:33 +00:00
danm%netscape.com 85d2dceb67 moved GetPrimordialThread from nsAppShellService to nsThread, as suggested by warren 1999-06-13 03:30:38 +00:00
valeski%netscape.com bade0cb940 added the HandleEvent method 1999-06-04 15:02:27 +00:00
alecf%netscape.com 8e0a105a40 stop using [] operator on nsISupportsArray - going away for scriptability. 1999-06-02 00:07:54 +00:00
dougt%netscape.com 981c6e2d15 Adding a few more functions to nsIEventQueue.
Moving proxy to use nsIEventQueue instead of PLEvents direct.
1999-05-29 22:50:25 +00:00
bruce%cybersight.com f31cd49b26 Fix usage of kISupportsIID so that my next checkin won't hork the tree. 1999-05-29 16:22:36 +00:00
dp%netscape.com afdcdd4a15 Adding progid and classname 1999-05-27 22:47:27 +00:00
sspitzer%netscape.com dc6a12ab7d cvs ignorage for xpcom2 landing 1999-05-26 17:51:05 +00:00
dp%netscape.com 0443b20e33 Landing xpcom20/21 branch. 1999-05-26 01:38:36 +00:00
warren%netscape.com 08b563e33a Added 1999-05-18 21:43:13 +00:00
dp%netscape.com f329e74754 Initial version 1999-05-18 09:11:01 +00:00
warren%netscape.com 7a41ef7d73 Fixed nsICollection (and Count in particular) to be xpidl friendly. 1999-05-13 04:56:04 +00:00
sspitzer%netscape.com df1ee53738 destructor should be virtual. 1999-05-13 00:44:20 +00:00
sspitzer%netscape.com f88899b6be check for existence before NS_ADDREFing.
this was causing a crash in smtpTest, pop3Test and nntpTest, where we
weren't registering the EventQueue component.

also, make these destructors virtual.
1999-05-07 00:09:46 +00:00
sspitzer%netscape.com 93fff16d77 check for existance before dereferencing 1999-05-06 00:24:45 +00:00
hyatt%netscape.com b787455ad9 Changed the arguments to PostSynchronousEvent. Added an EventLoop method. 1999-05-05 23:55:10 +00:00
hyatt%netscape.com 24983c6525 Committing the changes to support the new nsIEventQueue interface and
nested queues in the event queue service.
1999-05-04 23:35:47 +00:00
hyatt%netscape.com e74697248f Committing changes to support the new nsIEventQueue interface. 1999-05-04 23:35:25 +00:00
hshaw%netscape.com eae3dcdf4c include prcmon.h for nsThread.h, until unix defines NS_MT_SUPPORTED for nsISupports.h 1999-05-04 07:11:31 +00:00
warren%netscape.com 09b07809c1 Added include for nsError.h to get nsresult. 1999-04-30 23:49:30 +00:00
warren%netscape.com cc1333535a Made Notify and Wait methods return nsresult. 1999-04-30 22:55:16 +00:00
warren%netscape.com 187631ef17 Added nsAutoMonitor 1999-04-22 04:12:08 +00:00
waterson%netscape.com 295796c6fd Backed out change to nsISupportsArray::AppendElement() and RemoveElement(); they now return PRBool's like they used to. 1999-04-14 23:06:22 +00:00
warren%netscape.com c42f0d5d08 Fixed thread problems. 1999-04-13 18:15:27 +00:00
davidm%netscape.com 56a185dd88 Added code to allow mac process the event queues 1999-04-12 22:47:48 +00:00
warren%netscape.com 47085e4f4f Added GetIThread method 1999-04-06 06:09:15 +00:00
warren%netscape.com f463afe3df Fixed refcount problems. 1999-04-06 04:57:44 +00:00
warren%netscape.com a89a6c1a63 Fixed thread pool shutdown. 1999-04-06 01:42:01 +00:00
warren%netscape.com ed17a5b85d Mostly works now, except for nsIThreadPool::Join 1999-04-05 21:02:24 +00:00
warren%netscape.com 8bf75dfb46 Added nsIThread and nsIThreadPool. 1999-04-02 09:20:44 +00:00
rpotts%netscape.com 13204dc51d fix for crash in bug #2991... We still need to figure out why the EventQueue is not being returned properly on the Mac. 1999-03-19 05:54:17 +00:00
leaf%mozilla.org 0a0f5ac00f Landing nspr library name change, and plevent function call change. 1999-03-17 21:32:03 +00:00
ramiro%netscape.com 7e12a4b568 Use the macro on all platforms. Thanks to pierre for helping me make sure
it doesnt break the mac.  I verified that it works on unix and windows.
1999-03-09 19:19:02 +00:00
warren%netscape.com c50687b845 nsRepository -> nsIComponentManager changes. 1999-03-09 09:44:27 +00:00
ramiro%netscape.com 869b29d48d Templates in nsXPComFactory exorcism. Part I.
Replaced the template code with a NS_DEF_FACTORY.
This is temporary.  As soon as I can verify this works on windows and
mac, ill remove the old code.
1999-03-08 09:44:16 +00:00
waterson%netscape.com eb5acecc63 Fixed comments that were referring to monitors. 1999-02-04 23:20:30 +00:00
waterson%netscape.com 01610bdaeb Added headers that nsAutoLock needs. 1999-02-04 00:39:49 +00:00
waterson%netscape.com a1cee51422 Added operator new() and operator delete() to ensure that nobody tries to create one of these beasts on the free store. 1999-02-04 00:25:56 +00:00
waterson%netscape.com e232c67d81 Initial revision. 1999-02-03 22:44:14 +00:00
rpotts%netscape.com 436926ceb7 overhaul of the EventQueue service... 1999-01-10 08:12:01 +00:00
rpotts%netscape.com b07b261534 On windows call PL_InitializeEventsLib(...) until the new PL_event apis are available... 1999-01-05 09:44:28 +00:00
rpotts%netscape.com 0bf5584666 On windows only, ignore the eventQ kept by the eventQ service... Until the event Q is created with PL_CreateNativeEventQueue(...) only the main event Q can be used... 1999-01-05 05:43:53 +00:00
rpotts%netscape.com 4934691c42 This is the implementation of the EventQueue service... 1999-01-04 08:50:10 +00:00
rpotts%netscape.com d23c14b56d Interface to the EventQueue Service... 1999-01-04 08:43:12 +00:00