mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
removal of garbage collection
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39608 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
030f54a9cf
commit
d40d219015
72 changed files with 122 additions and 1787 deletions
|
@ -520,7 +520,7 @@ static Class runLoopClass;
|
|||
if (recvPort == nil)
|
||||
return nil;
|
||||
else
|
||||
return GS_GC_UNHIDE(recvPort);
|
||||
return recvPort;
|
||||
}
|
||||
|
||||
- (void) receivedEvent: (void*)data
|
||||
|
@ -1061,9 +1061,9 @@ static Class runLoopClass;
|
|||
if (sendPort == nil)
|
||||
return nil;
|
||||
else if (caller == YES)
|
||||
return GS_GC_UNHIDE(sendPort); // We called, so port is not retained.
|
||||
return sendPort; // We called, so port is not retained.
|
||||
else
|
||||
return sendPort; // Retained port.
|
||||
return sendPort; // Retained port.
|
||||
}
|
||||
|
||||
- (void) setState: (GSHandleState)s
|
||||
|
@ -1375,13 +1375,13 @@ typedef struct {
|
|||
if (send == YES)
|
||||
{
|
||||
if (handle->caller == YES)
|
||||
handle->sendPort = GS_GC_HIDE(self);
|
||||
handle->sendPort = self;
|
||||
else
|
||||
ASSIGN(handle->sendPort, self);
|
||||
}
|
||||
else
|
||||
{
|
||||
handle->recvPort = GS_GC_HIDE(self);
|
||||
handle->recvPort = self;
|
||||
}
|
||||
NSMapInsert(handles, (void*)(uintptr_t)[handle descriptor], (void*)handle);
|
||||
M_UNLOCK(myLock);
|
||||
|
@ -1453,7 +1453,7 @@ typedef struct {
|
|||
* Enumerate all our socket handles, and put them in as long as they
|
||||
* are to be used for receiving.
|
||||
*/
|
||||
recvSelf = GS_GC_HIDE(self);
|
||||
recvSelf = self;
|
||||
me = NSEnumerateMapTable(handles);
|
||||
while (NSNextMapEnumeratorPair(&me, &sock, (void**)&handle))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue