LCOV - code coverage report
Current view: top level - adcore/common - thread_without_attr.cpp (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 3 3
Test Date: 2026-08-12 11:04:53 Functions: 100.0 % 2 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              : #include "thread.h"
      11              : namespace Adx {
      12              : /**
      13              :  * @brief create thread
      14              :  * @param [out]tid : thread id
      15              :  * @param [int]funcBlock : function name and parameter
      16              :  *
      17              :  * @return
      18              :  *        EN_OK: succ
      19              :  *        other: failed
      20              :  */
      21            1 : int32_t Thread::CreateTask(mmThread& tid, mmUserBlock_t& funcBlock) { return mmCreateTask(&tid, &funcBlock); }
      22              : 
      23              : /**
      24              :  * @brief create thread with detach
      25              :  * @param [out]tid : thread id
      26              :  * @param [int]funcBlock : function name and parameter
      27              :  *
      28              :  * @return
      29              :  *        EN_OK: succ
      30              :  *        other: failed
      31              :  */
      32            2 : int32_t Thread::CreateDetachTask(mmThread& tid, mmUserBlock_t& funcBlock)
      33              : {
      34            2 :     return mmCreateTaskWithDetach(&tid, &funcBlock);
      35              : }
      36              : } // namespace Adx
        

Generated by: LCOV version 2.0-1