LCOV - code coverage report
Current view: top level - aicpu_schedule/core/operator_kernel/dequeue - operator_kernel_dequeue_base.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 2 2
Test Date: 2026-08-12 11:05:02 Functions: 66.7 % 3 2

            Line data    Source code
       1              : /**
       2              :  * Copyright (c) 2025 Huawei Technologies Co., Ltd.
       3              :  * This program is free software, you can redistribute it and/or modify it under the terms and conditions of
       4              :  * CANN Open Software License Agreement Version 2.0 (the "License").
       5              :  * Please refer to the License for details. You may not use this file except in compliance with the License.
       6              :  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
       7              :  * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
       8              :  * See LICENSE in the root of the software repository for the full text of the License.
       9              :  */
      10              : #ifndef OPERATOR_KERNEL_DEQUEUE_BASE_H
      11              : #define OPERATOR_KERNEL_DEQUEUE_BASE_H
      12              : 
      13              : #include "operator_kernel_context.h"
      14              : 
      15              : namespace AicpuSchedule {
      16              : class OperatorKernelDequeueBase {
      17              : public:
      18          123 :     OperatorKernelDequeueBase() = default;
      19          123 :     virtual ~OperatorKernelDequeueBase(){};
      20              : 
      21              :     int32_t DequeueTask(BufEnQueueInfo& bufInfo, const RunContext& taskContext, const bool needPending) const;
      22              :     static int32_t AlignTimestamp(
      23              :         BatchDequeueInfo& batchDeqInfo, const RunContext& taskContext, uint32_t& maxAlignTimestamp,
      24              :         uint32_t& minAlignTimestamp, uint32_t& minTimestampIndex);
      25              :     void ProcessMbufHeadInDequeueTask(const uint32_t modelId, void* const headBuf, const uint32_t headSize) const;
      26              :     void SetModelEndOfSequence(const uint32_t modelId, void* const headBuf, const uint32_t headSize) const;
      27              : 
      28              : private:
      29              :     void SetModelNullData(const uint32_t modelId, const MbufHeadMsg* const headMsg) const;
      30              :     void SetModelRetCode(const uint32_t modelId, const MbufHeadMsg* const headMsg) const;
      31              :     void SetMbufStepId(const uint32_t modelId, MbufHeadMsg* const headMsg) const;
      32              : };
      33              : } // namespace AicpuSchedule
      34              : #endif // OPERATOR_KERNEL_DEQUEUE_BASE_H
        

Generated by: LCOV version 2.0-1