mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
use weak pointers for siblings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28128 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
819a5470a5
commit
4e2efb55dc
4 changed files with 15 additions and 3 deletions
|
@ -111,6 +111,12 @@ GSPrivateSockaddrLength(struct sockaddr *addr)
|
|||
|
||||
@implementation GSStreamHandler
|
||||
|
||||
+ (void) initialize
|
||||
{
|
||||
GSMakeWeakPointer(self, "istream");
|
||||
GSMakeWeakPointer(self, "ostream");
|
||||
}
|
||||
|
||||
+ (void) tryInput: (GSSocketInputStream*)i output: (GSSocketOutputStream*)o
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
|
@ -1577,6 +1583,7 @@ setNonBlocking(SOCKET fd)
|
|||
|
||||
+ (void) initialize
|
||||
{
|
||||
GSMakeWeakPointer(self, "_sibling");
|
||||
if (self == [GSSocketInputStream class])
|
||||
{
|
||||
GSObjCAddClassBehavior(self, [GSSocketStream class]);
|
||||
|
@ -1990,6 +1997,7 @@ setNonBlocking(SOCKET fd)
|
|||
|
||||
+ (void) initialize
|
||||
{
|
||||
GSMakeWeakPointer(self, "_sibling");
|
||||
if (self == [GSSocketOutputStream class])
|
||||
{
|
||||
GSObjCAddClassBehavior(self, [GSSocketStream class]);
|
||||
|
@ -2400,6 +2408,7 @@ setNonBlocking(SOCKET fd)
|
|||
|
||||
+ (void) initialize
|
||||
{
|
||||
GSMakeWeakPointer(self, "_sibling");
|
||||
if (self == [GSSocketServerStream class])
|
||||
{
|
||||
GSObjCAddClassBehavior(self, [GSSocketStream class]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue