示例#1
0
 def __del__(self):
     fd = self.fd
     if fd != _c.INVALID_SOCKET:
         self.fd = _c.INVALID_SOCKET
         _c.socketclose_no_errno(fd)
示例#2
0
 def close(self):
     if not self.get_closed():
         kqfd = self.kqfd
         self.kqfd = -1
         socketclose_no_errno(kqfd)
         self.may_unregister_rpython_finalizer(self.space)
示例#3
0
 def close(self):
     if not self.get_closed():
         kqfd = self.kqfd
         self.kqfd = -1
         socketclose_no_errno(kqfd)
         self.may_unregister_rpython_finalizer(self.space)
示例#4
0
 def close(self):
     if not self.get_closed():
         kqfd = self.kqfd
         self.kqfd = -1
         socketclose_no_errno(kqfd)
示例#5
0
 def close(self):
     if not self.get_closed():
         kqfd = self.kqfd
         self.kqfd = -1
         socketclose_no_errno(kqfd)
示例#6
0
文件: rsocket.py 项目: juokaz/pypy
 def __del__(self):
     fd = self.fd
     if fd != _c.INVALID_SOCKET:
         self.fd = _c.INVALID_SOCKET
         _c.socketclose_no_errno(fd)