mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
iPerformance and GC improvements
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13726 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5651fe7dbb
commit
ecbcc202a1
15 changed files with 167 additions and 114 deletions
|
@ -1285,9 +1285,12 @@ static Class tcpPortClass;
|
|||
h->myLock = [NSRecursiveLock new];
|
||||
}
|
||||
}
|
||||
NSEndMapTableEnumeration(&hEnum);
|
||||
}
|
||||
}
|
||||
NSEndMapTableEnumeration(&mEnum);
|
||||
}
|
||||
NSEndMapTableEnumeration(&pEnum);
|
||||
}
|
||||
[[NSNotificationCenter defaultCenter]
|
||||
removeObserver: self
|
||||
|
@ -1656,6 +1659,7 @@ static Class tcpPortClass;
|
|||
fds[(*count)++] = sock;
|
||||
}
|
||||
}
|
||||
NSEndMapTableEnumeration(&me);
|
||||
DO_UNLOCK(myLock);
|
||||
}
|
||||
|
||||
|
@ -1675,9 +1679,11 @@ static Class tcpPortClass;
|
|||
if ([handle recvPort] == recvPort)
|
||||
{
|
||||
DO_UNLOCK(myLock);
|
||||
NSEndMapTableEnumeration(&me);
|
||||
return handle;
|
||||
}
|
||||
}
|
||||
NSEndMapTableEnumeration(&me);
|
||||
if (handle == nil)
|
||||
{
|
||||
int opt = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue