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-08-06 15:29:52 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(const uint32_t qid, const int32_t pid, const uint32_t permission,
      26              :         const int32_t timeout) override;
      27              : 
      28              :     aclError acltdtAttachQueue(const uint32_t qid, const int32_t timeout,
      29              :         uint32_t *const permission) override;
      30              : 
      31              :     aclError acltdtBindQueueRoutes(acltdtQueueRouteList *const qRouteList) override;
      32              : 
      33              :     aclError acltdtUnbindQueueRoutes(acltdtQueueRouteList *const qRouteList) override;
      34              : 
      35              :     aclError GrantQueue2Cp(const int32_t deviceId, const uint32_t qid) const;
      36              : 
      37              :     aclError acltdtQueryQueueRoutes(const acltdtQueueRouteQueryInfo *const queryInfo,
      38              :                                     acltdtQueueRouteList *const qRouteList) override;
      39              : 
      40              :     aclError acltdtAllocBuf(const size_t size, const uint32_t type, acltdtBuf *const buf) override;
      41              : 
      42           15 :     QueueProcessorSp() = default;
      43           15 :     ~QueueProcessorSp() override = default;
      44              : 
      45              :     // not allow copy constructor and assignment operators
      46              :     QueueProcessorSp(const QueueProcessorSp &) = delete;
      47              : 
      48              :     QueueProcessorSp &operator=(const QueueProcessorSp &) = delete;
      49              : 
      50              :     QueueProcessorSp(QueueProcessorSp &&) = delete;
      51              : 
      52              :     QueueProcessorSp &&operator=(QueueProcessorSp &&) = delete;
      53              : };
      54              : }
      55              : #endif // QUEUE_PROCESS_SP_H
        

Generated by: LCOV version 2.0-1