Commit graph

98 commits

Author SHA1 Message Date
Richard Frith-Macdonald
9e7fe6bf12 Tidied for gcc-3.4
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15476 72102866-910b-0410-8b05-ffd578937521
2003-01-03 20:14:47 +00:00
Richard Frith-Macdonald
fddaa462bc Documentation tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14298 72102866-910b-0410-8b05-ffd578937521
2002-08-20 10:22:05 +00:00
Richard Frith-Macdonald
2700f7ed6e Re-instated new poll() based runloop code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12275 72102866-910b-0410-8b05-ffd578937521
2002-01-30 15:28:50 +00:00
Richard Frith-Macdonald
a0a6f5f346 Added date version and title
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11814 72102866-910b-0410-8b05-ffd578937521
2001-12-18 16:54:15 +00:00
Richard Frith-Macdonald
5be36e089c Many minor fixes for autogsdoc.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11787 72102866-910b-0410-8b05-ffd578937521
2001-12-17 14:31:42 +00:00
Richard Frith-Macdonald
ee7eb89ab9 Autorelease fine control added
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9917 72102866-910b-0410-8b05-ffd578937521
2001-05-10 20:00:02 +00:00
Jonathan Gapen
cb8b09362f String usage updates.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9459 72102866-910b-0410-8b05-ffd578937521
2001-03-19 23:53:23 +00:00
Nicola Pero
940c4def85 Commented out invasive debugging message
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@8184 72102866-910b-0410-8b05-ffd578937521
2000-11-23 10:47:53 +00:00
Richard Frith-MacDonald
472f5a6d1f Thread fixes for NSConnection
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@8174 72102866-910b-0410-8b05-ffd578937521
2000-11-22 08:41:07 +00:00
Richard Frith-MacDonald
e08aff80a4 Minor optimisation and tidy
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7660 72102866-910b-0410-8b05-ffd578937521
2000-09-30 05:16:53 +00:00
Richard Frith-MacDonald
11ef04f603 More GC tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4953 72102866-910b-0410-8b05-ffd578937521
1999-09-28 11:10:34 +00:00
Richard Frith-MacDonald
211089cd20 Ivar underscore prefixes added and some tidying done.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4902 72102866-910b-0410-8b05-ffd578937521
1999-09-16 07:21:34 +00:00
Adam Fedor
078e46d305 Merge from dawn
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4853 72102866-910b-0410-8b05-ffd578937521
1999-09-09 02:56:20 +00:00
Richard Frith-MacDonald
6eeac88fe0 More optimisation - remove objc overhead in adding object to pool.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4216 72102866-910b-0410-8b05-ffd578937521
1999-05-06 20:22:16 +00:00
Richard Frith-MacDonald
1dbd6cc410 Performance improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4215 72102866-910b-0410-8b05-ffd578937521
1999-05-06 19:37:45 +00:00
Richard Frith-MacDonald
bad4f54d67 Optimisation, bug fixes and tidying up.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4107 72102866-910b-0410-8b05-ffd578937521
1999-04-21 20:16:25 +00:00
Richard Frith-MacDonald
84e7ffcdef Optimisation mostly
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4098 72102866-910b-0410-8b05-ffd578937521
1999-04-19 14:29:52 +00:00
Adam Fedor
52f6bc90ae Makefile changes to compile thinkg in place.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3496 72102866-910b-0410-8b05-ffd578937521
1998-12-20 21:27:47 +00:00
Richard Frith-MacDonald
fffedeff85 Optimize NSAutoreleasePool +new
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3275 72102866-910b-0410-8b05-ffd578937521
1998-11-20 13:44:59 +00:00
Richard Frith-MacDonald
5777121734 Replace assert with NSAssert
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3248 72102866-910b-0410-8b05-ffd578937521
1998-11-19 21:26:27 +00:00
Richard Frith-MacDonald
5f94f13a30 Log warning if an object is autoreleased without a pool.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3001 72102866-910b-0410-8b05-ffd578937521
1998-10-01 03:05:27 +00:00
Scott Christley
2c49c63e47 Add global Foundation header file.
Fix some missed memory allocation function usage.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2682 72102866-910b-0410-8b05-ffd578937521
1998-01-03 21:27:44 +00:00
Scott Christley
369c38280a Remove dependency upon config.h by headers files and include
directly in source files because the config.h file is system
dependent, used just for compiling the source, and should
not be installed.
Some minor bug fixes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2619 72102866-910b-0410-8b05-ffd578937521
1997-11-06 00:51:23 +00:00
Andrew McCallum
8a77b79ada Changes by wacko@power1.snu.ac.kr (Yoo C. Chung). See ChangeLog Feb 4
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2205 72102866-910b-0410-8b05-ffd578937521
1997-03-03 19:56:37 +00:00
Andrew McCallum
af908b993e Changes by wacko@power1.snu.ac.kr (Yoo C. Chung). See ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2201 72102866-910b-0410-8b05-ffd578937521
1997-03-03 19:43:25 +00:00
Andrew McCallum
90c034dee3 Don't include objc-malloc.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1729 72102866-910b-0410-8b05-ffd578937521
1996-09-07 20:17:46 +00:00
Andrew McCallum
f3c5d64159 ([NSAutoreleasePool -init]): In accordance with Objective C runtime
change, use objc_malloc as a function, not a function pointer.
([NSAutoreleasePool -addObject:]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1718 72102866-910b-0410-8b05-ffd578937521
1996-09-07 19:57:33 +00:00
Andrew McCallum
52441fecef Changes made in Rochester. See ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1650 72102866-910b-0410-8b05-ffd578937521
1996-07-15 18:41:44 +00:00
Andrew McCallum
6531e2ead0 Don't include <gnustep/base/Array.h>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1596 72102866-910b-0410-8b05-ffd578937521
1996-05-31 14:23:02 +00:00
Andrew McCallum
168f431ba9 Change "Gnustep" to "GNUstep"
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1521 72102866-910b-0410-8b05-ffd578937521
1996-05-12 00:56:10 +00:00
Andrew McCallum
63e596e70c Comment changes, and preparation for thread-safety.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1516 72102866-910b-0410-8b05-ffd578937521
1996-05-12 00:38:07 +00:00
Andrew McCallum
1b2c5c89ff Change R. Andrew McCallum to post-marriage name: Andrew Kachites McCallum
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1456 72102866-910b-0410-8b05-ffd578937521
1996-04-17 20:17:45 +00:00
Andrew McCallum
05817bc168 Rename in comments from GNU Objective C Class Library to Gnustep Base Library.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1451 72102866-910b-0410-8b05-ffd578937521
1996-04-17 19:55:26 +00:00
Andrew McCallum
a8ae3dddbb Fix typo; it is preface.h, not prefix.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1420 72102866-910b-0410-8b05-ffd578937521
1996-04-17 15:34:35 +00:00
Andrew McCallum
838ac3681f Change all include objects/*.h to include gnustep/base/*.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1419 72102866-910b-0410-8b05-ffd578937521
1996-04-17 15:23:00 +00:00
Andrew McCallum
b323dabc31 ([NSAutoreleasePool -dealloc]): When unintalling ourselves at the
current pool, and setting our parent to be the current pool, be sure
to set our parent's _CHILD ivar to nil.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1340 72102866-910b-0410-8b05-ffd578937521
1996-04-10 16:40:25 +00:00
Andrew McCallum
54acc69932 Make NSAutoreleasePools co-exist with exceptions, safely and without
leaks.  Also improve efficiency by using a linked list of arrays
instead of realloc when more space is needed, and by using a cache of
pools that helps avoid the allocation/deallocation of pools.
(push_pool_to_cache): New function.
(pop_pool_from_cache): New function.
([NSAutoreleasePool +initialize]): New method.
([NSAutoreleasePool +allocWithZone:]): New method.
([NSAutoreleasePool -init]): Method overhauled to initialize new ivar
for handling exceptions, _child; also use pool cache.
(total_autoreleased_objects_count): New static variable.
(BEGINNING_POOL_SIZE): Macro renamed from DEFAULT_SIZE.
(autorelease_pool_cache, autorelease_pool_cache_size,
autorelease_pool_cache_count): New static variables.
([NSAutoreleasePool -_setChildPool:]): New method, handling stack and
dealing with exceptions.
([NSAutoreleasePool -addObject:]): Deal with linked list of arrays.
([NSAutoreleasePool -dealloc]): Deal with exceptions by releasing
child pools.  Place self into the pool cache instead of deallocating.
([NSAutoreleasePool +resetTotalAutoreleasedObjects]): New method.
([NSAutoreleasePool +totalAutoreleasedObjects]): New method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1311 72102866-910b-0410-8b05-ffd578937521
1996-03-30 22:39:48 +00:00
Andrew McCallum
647f080875 Fix typos.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1276 72102866-910b-0410-8b05-ffd578937521
1996-03-26 20:59:42 +00:00
Andrew McCallum
5aae0eafb3 Use NSException instead of sending -error: in all methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1273 72102866-910b-0410-8b05-ffd578937521
1996-03-26 19:35:47 +00:00
Andrew McCallum
7bc19d4b5b ([NSAutoreleasePool -dealloc]): Set CURRENT_POOL to PARENT, even if
PARENT is nil.  This is correct behavior.  Old behavior could cause
infinite loops in the PARENT pointers.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1197 72102866-910b-0410-8b05-ffd578937521
1996-03-18 21:43:14 +00:00
Andrew McCallum
9312eb0466 ([NSAutoreleasePool -parentAutoreleasePool]): Remove inclusion of
eltfuncs.h and collhash.h.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1164 72102866-910b-0410-8b05-ffd578937521
1996-03-18 13:54:29 +00:00
Andrew McCallum
9713d6ab6e ([NSAutoreleasePool -dealloc]): Removed question comment.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@572 72102866-910b-0410-8b05-ffd578937521
1995-08-23 15:07:17 +00:00
Andrew McCallum
bbd87c3bb0 ([NSAutoreleasePool -dealloc]): Use object_get_class() instead of
->isa.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@533 72102866-910b-0410-8b05-ffd578937521
1995-08-08 15:38:02 +00:00
Andrew McCallum
e3689458b8 ([NSAutoreleasePool -addObject:]):
Remove double_release checking. Increment released_count after
setting released array.
([NSAutoreleasePool -dealloc]): Catch release errors.
([NSAutoreleasePool -enableDoubleReleaseCheck:]): Removed method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@528 72102866-910b-0410-8b05-ffd578937521
1995-08-04 20:51:19 +00:00
Andrew McCallum
829722ea98 ([NSAutoreleasePool +autoreleaseCountForObject:]): Initialize count to 0.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@511 72102866-910b-0410-8b05-ffd578937521
1995-08-02 15:40:33 +00:00
Andrew McCallum
7699a66d17 Include from <Foundation/...>, not <foundation/...>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@391 72102866-910b-0410-8b05-ffd578937521
1995-04-17 21:13:20 +00:00
Andrew McCallum
03659389e9 (+enableRelease:, +enableDoubleReleaseCheck:,
+setPoolCountThreshhold:): New methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@354 72102866-910b-0410-8b05-ffd578937521
1995-04-14 15:01:24 +00:00
Andrew McCallum
270c996fa0 Initial revision
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@92 72102866-910b-0410-8b05-ffd578937521
1995-03-12 19:35:17 +00:00