    def pop(self, uniqId=0, erase=True):
        '''
        @brief: 弹出item
        @param uniqId: item的id，如果为0，按FIFO弹出
        @type uniqId: int
        @param erase: 弹出后是否从字典里删除item
        @type erase: bool
        @return: item
        @rtype: any type
        '''
        ret = None

        # self.__lock.acquire()
        lock = LockGuard(self.__lock)

        if not uniqId:
            if len(self.__queue):
                uniqId = self.__queue.pop(0)
        if uniqId:
            if erase:
                ret = self.__data.pop(uniqId, None)
            else:
                ret = self.__data.get(uniqId, None)

        # self.__lock.release()

        return ret[0] if ret else None
@brief: 弹出item
@param uniqId: item的id，如果为0，按FIFO弹出
@type uniqId: int
@param erase: 弹出后是否从字典里删除item
@type erase: bool
@return: item
@rtype: any type
biliup/Danmaku/tars/__TimeoutQueue.py