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
This commit is contained in:
Richard Frith-Macdonald 2002-01-30 15:28:50 +00:00
parent 5448f399a1
commit 2700f7ed6e
4 changed files with 1159 additions and 652 deletions

View file

@ -256,17 +256,24 @@ static IMP initImp;
{
NSAutoreleasePool *pool = ARP_THREAD_VARS->current_pool;
if (pool)
(*pool->_addImp)(pool, @selector(addObject:), anObj);
if (pool != nil)
{
(*pool->_addImp)(pool, @selector(addObject:), anObj);
}
else
{
NSAutoreleasePool *arp = [NSAutoreleasePool new];
if (anObj)
NSLog(@"autorelease called without pool for object (%x) of class %@\n",
anObj, NSStringFromClass([anObj class]));
if (anObj != nil)
{
NSLog(@"autorelease called without pool for object (%x) "
@"of class %@ in thread %@", anObj,
NSStringFromClass([anObj class]), [NSThread currentThread]);
}
else
NSLog(@"autorelease called without pool for nil object.\n");
{
NSLog(@"autorelease called without pool for nil object.");
}
[arp release];
}
}