    def timeout(self):
        '''
        @brief: 检测是否有item超时，如果有就删除
        @return: None
        @rtype: None
        '''
        endtime = time.time()
        # self.__lock.acquire()
        lock = LockGuard(self.__lock)

        # 处理异常情况，防止死锁
        try:
            new_data = {}
            for uniqId, item in self.__data.items():
                if endtime - item[1] < self.__timeout:
                    new_data[uniqId] = item
                else:
                    tarsLogger.debug(
                        'TimeoutQueue:timeout remove id : %d' % uniqId)
            self.__data = new_data
        finally:
            # self.__lock.release()
            pass
@brief: 检测是否有item超时，如果有就删除
@return: None
@rtype: None
biliup/Danmaku/tars/__TimeoutQueue.py