    def size(self):
        '''
        @brief: 获取队列长度
        @return: 队列长度
        @rtype: int
        '''
        # self.__lock.acquire()
        lock = LockGuard(self.__lock)
        ret = len(self.__data)
        # self.__lock.release()
        return ret
@brief: 获取队列长度
@return: 队列长度
@rtype: int
biliup/Danmaku/tars/__TimeoutQueue.py