# npth **Repository Path**: jungle/npth ## Basic Information - **Project Name**: npth - **Description**: npth dynamic library - **Primary Language**: C - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2024-11-17 - **Last Updated**: 2024-12-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # npth #### 介绍 npth dynamic library 通过一把锁,实现线程的串行调度 #### 使用说明 参见示例:https://gitee.com/jungle/online-judge/blob/master/judger-kernel/CMakeLists.txt 1. 项目中引用npth ``` set(LIB_NPTH_NAME npth) set(LIB_NPTH_GIT_TAG master) set(LIB_NPTH_GIT_URL https://gitee.com/jungle/${LIB_NPTH_NAME}.git) FetchContent_Declare( ${LIB_NPTH_NAME} GIT_REPOSITORY ${LIB_NPTH_GIT_URL} GIT_TAG ${LIB_NPTH_GIT_TAG} ) FetchContent_MakeAvailable(${LIB_NPTH_NAME}) ``` 2. 链接时带上npth动态库即可 #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request