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
This commit is contained in:
Richard Frith-MacDonald 1999-04-21 20:16:25 +00:00
parent 4b1b047b85
commit bad4f54d67
14 changed files with 302 additions and 255 deletions

View file

@ -383,6 +383,29 @@ static IMP initImp;
return self;
}
+ (void) _endThread
{
struct autorelease_thread_vars *tv;
id pool;
tv = ARP_THREAD_VARS;
while (tv->current_pool)
{
[tv->current_pool release];
pool = pop_pool_from_cache(tv);
[pool reallyDealloc];
}
while (tv->pool_cache_count)
{
pool = pop_pool_from_cache(tv);
[pool reallyDealloc];
}
if (tv->pool_cache)
OBJC_FREE(tv->pool_cache);
}
+ (void) resetTotalAutoreleasedObjects
{
ARP_THREAD_VARS->total_objects_count = 0;