mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Various tidyups and additions for DO stuff under development
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6837 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
86a72cd7fd
commit
fe2ffe47ae
10 changed files with 2604 additions and 36 deletions
2304
Source/GSConnection.m
Normal file
2304
Source/GSConnection.m
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1641,6 +1641,11 @@ typeCheck(char t1, char t2)
|
|||
|
||||
@implementation GSPortCoder (Private)
|
||||
|
||||
- (NSArray*) _components
|
||||
{
|
||||
return _comp;
|
||||
}
|
||||
|
||||
- (void) _deserializeHeaderAt: (unsigned*)pos
|
||||
version: (unsigned*)v
|
||||
classes: (unsigned*)c
|
||||
|
|
|
@ -306,7 +306,6 @@ static int messages_received_count;
|
|||
newPort = [default_receive_port_class newForReceiving];
|
||||
c = [c initWithReceivePort: newPort sendPort: nil];
|
||||
RELEASE(newPort);
|
||||
return c;
|
||||
[d setObject: c forKey: tkey];
|
||||
RELEASE(c);
|
||||
}
|
||||
|
@ -454,15 +453,6 @@ static int messages_received_count;
|
|||
return [NSConnection defaultConnection];
|
||||
}
|
||||
|
||||
/*
|
||||
* Keep track of connections created by DO system but not necessarily
|
||||
* ever retained by users code. These must be retained now for later
|
||||
* release when invalidated.
|
||||
*/
|
||||
- (void) setNotOwned
|
||||
{
|
||||
}
|
||||
|
||||
/* xxx This needs locks */
|
||||
- (void) invalidate
|
||||
{
|
||||
|
|
|
@ -439,24 +439,8 @@ enum
|
|||
* automatically when no proxies are left on it.
|
||||
*/
|
||||
proxy_connection = [[decoder_connection class]
|
||||
connectionByInPort:
|
||||
[decoder_connection receivePort]
|
||||
outPort:
|
||||
proxy_connection_out_port];
|
||||
if (proxy_connection == nil)
|
||||
{
|
||||
proxy_connection = [[decoder_connection class]
|
||||
connectionByOutPort: proxy_connection_out_port];
|
||||
}
|
||||
if (proxy_connection == nil)
|
||||
{
|
||||
proxy_connection = [[decoder_connection class]
|
||||
newForInPort: [decoder_connection receivePort]
|
||||
outPort: proxy_connection_out_port
|
||||
ancestorConnection: decoder_connection];
|
||||
[proxy_connection setNotOwned];
|
||||
[proxy_connection autorelease];
|
||||
}
|
||||
connectionWithReceivePort: [decoder_connection receivePort]
|
||||
sendPort: proxy_connection_out_port];
|
||||
|
||||
if (debug_proxy)
|
||||
NSLog(@"Receiving a triangle-connection proxy 0x%x "
|
||||
|
|
|
@ -272,8 +272,6 @@ static BOOL debug_connected_coder = NO;
|
|||
outPort: reply_port
|
||||
ancestorConnection: c];
|
||||
|
||||
[cd->connection setNotOwned];
|
||||
|
||||
/* Decode the PortDecoder's ivars. */
|
||||
[cd decodeValueOfCType: @encode(typeof(cd->sequence_number))
|
||||
at: &(cd->sequence_number)
|
||||
|
@ -305,8 +303,6 @@ static BOOL debug_connected_coder = NO;
|
|||
outPort: reply_port
|
||||
ancestorConnection: c];
|
||||
|
||||
[cd->connection setNotOwned];
|
||||
|
||||
/* Decode the PortDecoder's ivars. */
|
||||
[cd decodeValueOfCType: @encode(typeof(cd->sequence_number))
|
||||
at: &(cd->sequence_number)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue