LCOV - code coverage report
Current view: top level - acl/acl_tdt_queue - queue_process_sp.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 2 2
Test Date: 2026-07-28 10:53:01 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              : 
      11              : #ifndef QUEUE_PROCESS_SP_H
      12              : #define QUEUE_PROCESS_SP_H
      13              : 
      14              : #include <map>
      15              : #include <string>
      16              : #include "queue_process.h"
      17              : 
      18              : namespace acl {
      19              : class QueueProcessorSp : public QueueProcessor {
      20              : public:
      21              :     aclError acltdtCreateQueue(const acltdtQueueAttr* const attr, uint32_t* const qid) override;
      22              : 
      23              :     aclError acltdtDestroyQueue(const uint32_t qid) override;
      24              : 
      25              :     aclError acltdtGrantQueue(
      26              :         const uint32_t qid, const int32_t pid, const uint32_t permission, const int32_t timeout) override;
      27              : 
      28              :     aclError acltdtAttachQueue(const uint32_t qid, const int32_t timeout, uint32_t* const permission) override;
      29              : 
      30              :     aclError acltdtBindQueueRoutes(acltdtQueueRouteList* const qRouteList) override;
      31              : 
      32              :     aclError acltdtUnbindQueueRoutes(acltdtQueueRouteList* const qRouteList) override;
      33              : 
      34              :     aclError GrantQueue2Cp(const int32_t deviceId, const uint32_t qid) const;
      35              : 
      36              :     aclError acltdtQueryQueueRoutes(
      37              :         const acltdtQueueRouteQueryInfo* const queryInfo, acltdtQueueRouteList* const qRouteList) override;
      38              : 
      39              :     aclError acltdtAllocBuf(const size_t size, const uint32_t type, acltdtBuf* const buf) override;
      40              : 
      41           15 :     QueueProcessorSp() = default;
      42           15 :     ~QueueProcessorSp() override = default;
      43              : 
      44              :     // not allow copy constructor and assignment operators
      45              :     QueueProcessorSp(const QueueProcessorSp&) = delete;
      46              : 
      47              :     QueueProcessorSp& operator=(const QueueProcessorSp&) = delete;
      48              : 
      49              :     QueueProcessorSp(QueueProcessorSp&&) = delete;
      50              : 
      51              :     QueueProcessorSp&& operator=(QueueProcessorSp&&) = delete;
      52              : };
      53              : } // namespace acl
      54              : #endif // QUEUE_PROCESS_SP_H
        

Generated by: LCOV version 2.0-1