Skip to content

Commit 7b2d2e5

Browse files
committed
feat: 提供 head-only 版本
1 parent 8ebf49d commit 7b2d2e5

4 files changed

Lines changed: 223 additions & 273 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ message("* * * * * * * * * * * * * * * * *")
99

1010
cmake_minimum_required(VERSION 3.5.0)
1111

12-
project(CThreadPool VERSION 1.2.1)
12+
project(CThreadPool VERSION 1.3.0)
1313

1414
set(CMAKE_CXX_STANDARD 11)
1515

1616
# add CThreadPool environment info
1717
include(cmake/CThreadPool-env-include.cmake)
1818

19-
file(GLOB_RECURSE CTP_SRC_LIST "./src/*.cpp")
20-
2119
# 如果开启此宏定义,则CGraph执行过程中,不会在控制台打印任何信息
2220
# add_definitions(-D_CGRAPH_SILENCE_)
2321

@@ -27,6 +25,6 @@ file(GLOB_RECURSE CTP_SRC_LIST "./src/*.cpp")
2725
# 编译libCThreadPool静态库
2826
# add_library(CThreadPool STATIC ${CTP_SRC_LIST})
2927

30-
add_executable(CThreadPool
28+
add_executable(tutorial
3129
${CTP_SRC_LIST}
3230
tutorial.cpp)

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</h1>
1111

1212
## 一. 简介
13-
`CThreadPool` 是一个跨平台的、无任何三方依赖的、高性能的C++11(含以上版本)版本的线程池,也是 [CGraph](https://github.com/ChunelFeng/CGraph) 项目中使用的跨平台线程池组件功能的最小集。
13+
`CThreadPool` 是一个跨平台的、无任何三方依赖的、head-only的、高性能的C++11(含以上版本)版本的线程池,也是 [CGraph](https://github.com/ChunelFeng/CGraph) 项目中使用的跨平台线程池组件功能的最小集。
1414

1515
经过CGraph和关联项目的长期迭代和验证,功能已经趋于稳定,且性能优异。因为咨询相关内容的朋友较多,故做为独立的仓库提供出来,方便大家使用。
1616

@@ -87,6 +87,9 @@ int main() {
8787
* 更新执行策略,优化整体性能
8888
* 修复辅助线程唤醒延时的问题
8989
90+
[2025.04.17 - v1.3.0 - Chunel]
91+
* 提供 head-only 版本
92+
9093
------------
9194
#### 附录-2. 联系方式
9295
* 微信: ChunelFeng

src/UtilsCtrl/ThreadPool/UThreadPool.cpp

Lines changed: 0 additions & 255 deletions
This file was deleted.

0 commit comments

Comments
 (0)