mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
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:
parent
4b1b047b85
commit
bad4f54d67
14 changed files with 302 additions and 255 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue