netpycos.py 文件源码

python
阅读 32 收藏 0 点赞 0 评论 0

项目:pycos 作者: pgiri 项目源码 文件源码
def register(self):
        """RTI must be registered so it can be located.
        """
        if self._location:
            return -1
        if not inspect.isgeneratorfunction(self._method):
            return -1
        RTI._pycos._lock.acquire()
        if RTI._pycos._rtis.get(self._name, None) is None:
            RTI._pycos._rtis[self._name] = self
            RTI._pycos._lock.release()
            return 0
        else:
            RTI._pycos._lock.release()
            return -1
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号