mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
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:
parent
5448f399a1
commit
2700f7ed6e
4 changed files with 1159 additions and 652 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue