diff --git a/src/gausskernel/cbb/bbox/bbox_threads.cpp b/src/gausskernel/cbb/bbox/bbox_threads.cpp index a8ce5e514..e303f86e3 100644 --- a/src/gausskernel/cbb/bbox/bbox_threads.cpp +++ b/src/gausskernel/cbb/bbox/bbox_threads.cpp @@ -101,8 +101,14 @@ s32 BBOX_CloneRun(u32 uFlags, s32 (*pFn)(void*), void* pArg, ...) } /* - * get count of thread - */ +function name: BBOX_GetTaskNumber +description: When get a path to specific process, this function will return count of threads below it. +arguments: An pointer of type char*, including a path to specific process. +return value: An integer that indicates the count of threads below specific process. +note: none +date: 2022/8/3 +contact tel: 18720816902 +*/ s32 BBOX_GetTaskNumber(char* szTaskPath) { struct kernel_stat stProcSB = {0}; @@ -138,6 +144,7 @@ s32 BBOX_GetTaskNumber(char* szTaskPath) /* * get thread pid */ + s32 BBOX_GetTaskId(struct TASK_ATTACH_INFO* pstTaskInfo, s32 iSize, char* szTaskPath) { s32 iProc = -1;