mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-22 05:02:00 +00:00
DO stability improvement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4988 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
636ef08486
commit
0e1be721bc
5 changed files with 19 additions and 62 deletions
|
@ -115,12 +115,12 @@ static BOOL debug_connected_coder = NO;
|
|||
|
||||
- (unsigned) _coderReferenceForConstPtr: (const void*)ptr
|
||||
{
|
||||
return [connection _encoderReferenceForConstPtr: ptr];
|
||||
return 0;
|
||||
}
|
||||
|
||||
- (unsigned) _coderCreateReferenceForConstPtr: (const void*)ptr
|
||||
{
|
||||
return [connection _encoderCreateReferenceForConstPtr: ptr];
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -222,12 +222,12 @@ static BOOL debug_connected_coder = NO;
|
|||
|
||||
- (unsigned) _coderCreateReferenceForConstPtr: (const void*)ptr
|
||||
{
|
||||
return [connection _decoderCreateReferenceForConstPtr: ptr];
|
||||
return 0;
|
||||
}
|
||||
|
||||
- (const void*) _coderConstPtrAtReference: (unsigned)xref
|
||||
{
|
||||
return [connection _decoderConstPtrAtReference: xref];
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -707,8 +707,6 @@ static int messages_received_count;
|
|||
NSFreeMapTable (remote_proxies);
|
||||
NSFreeMapTable (local_objects);
|
||||
NSFreeMapTable (local_targets);
|
||||
NSFreeMapTable (incoming_xref_2_const_ptr);
|
||||
NSFreeMapTable (outgoing_const_ptr_2_xref);
|
||||
[proxiesHashGate unlock];
|
||||
|
||||
[arp release];
|
||||
|
@ -945,13 +943,6 @@ static int messages_received_count;
|
|||
NSCreateMapTable (NSIntMapKeyCallBacks,
|
||||
NSNonOwnedPointerMapValueCallBacks, 0);
|
||||
|
||||
newConn->incoming_xref_2_const_ptr =
|
||||
NSCreateMapTable (NSIntMapKeyCallBacks,
|
||||
NSNonOwnedPointerMapValueCallBacks, 0);
|
||||
newConn->outgoing_const_ptr_2_xref =
|
||||
NSCreateMapTable (NSIntMapKeyCallBacks,
|
||||
NSNonOwnedPointerMapValueCallBacks, 0);
|
||||
|
||||
newConn->reply_timeout = [self defaultInTimeout];
|
||||
newConn->request_timeout = [self defaultOutTimeout];
|
||||
newConn->encoding_class = default_encoding_class;
|
||||
|
@ -2255,45 +2246,6 @@ static int messages_received_count;
|
|||
return default_decoding_class;
|
||||
}
|
||||
|
||||
|
||||
/* Support for cross-connection const-ptr cache. */
|
||||
|
||||
- (unsigned) _encoderCreateReferenceForConstPtr: (const void*)ptr
|
||||
{
|
||||
unsigned xref;
|
||||
|
||||
NSParameterAssert (is_valid);
|
||||
/* This must match the assignment of xref in _decoderCreateRef... */
|
||||
xref = NSCountMapTable (outgoing_const_ptr_2_xref) + 1;
|
||||
NSParameterAssert (! NSMapGet (outgoing_const_ptr_2_xref, (void*)xref));
|
||||
NSMapInsert (outgoing_const_ptr_2_xref, ptr, (void*)xref);
|
||||
return xref;
|
||||
}
|
||||
|
||||
- (unsigned) _encoderReferenceForConstPtr: (const void*)ptr
|
||||
{
|
||||
NSParameterAssert (is_valid);
|
||||
return (unsigned) NSMapGet (outgoing_const_ptr_2_xref, ptr);
|
||||
}
|
||||
|
||||
- (unsigned) _decoderCreateReferenceForConstPtr: (const void*)ptr
|
||||
{
|
||||
unsigned xref;
|
||||
|
||||
NSParameterAssert (is_valid);
|
||||
/* This must match the assignment of xref in _encoderCreateRef... */
|
||||
xref = NSCountMapTable (incoming_xref_2_const_ptr) + 1;
|
||||
NSMapInsert (incoming_xref_2_const_ptr, (void*)xref, ptr);
|
||||
return xref;
|
||||
}
|
||||
|
||||
- (const void*) _decoderConstPtrAtReference: (unsigned)xref
|
||||
{
|
||||
NSParameterAssert (is_valid);
|
||||
return NSMapGet (incoming_xref_2_const_ptr, (void*)xref);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Prevent trying to encode the connection itself */
|
||||
|
||||
|
|
|
@ -162,12 +162,12 @@ static BOOL debug_connected_coder = NO;
|
|||
|
||||
- (unsigned) _coderReferenceForConstPtr: (const void*)ptr
|
||||
{
|
||||
return [connection _encoderReferenceForConstPtr: ptr];
|
||||
return 0;
|
||||
}
|
||||
|
||||
- (unsigned) _coderCreateReferenceForConstPtr: (const void*)ptr
|
||||
{
|
||||
return [connection _encoderCreateReferenceForConstPtr: ptr];
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -341,12 +341,12 @@ static BOOL debug_connected_coder = NO;
|
|||
|
||||
- (unsigned) _coderCreateReferenceForConstPtr: (const void*)ptr
|
||||
{
|
||||
return [connection _decoderCreateReferenceForConstPtr: ptr];
|
||||
return 0;
|
||||
}
|
||||
|
||||
- (const void*) _coderConstPtrAtReference: (unsigned)xref
|
||||
{
|
||||
return [connection _decoderConstPtrAtReference: xref];
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue