Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ message("* * * * * * * * * * * * * * * * * * * * * * * * * * * * *")

cmake_minimum_required(VERSION 3.5.0)

project(CGraph VERSION 3.2.1)
project(CGraph VERSION 3.2.2)

if(NOT DEFINED CMAKE_CXX_STANDARD)
# CGraph默认使用C++11版本,推荐使用C++17版本。暂不支持C++11以下版本
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ if __name__ == '__main__':
* 优化 `message` 功能
* 优化 `aspect` 功能

[2025.11.08 - v3.2.1 - Chunel]
[2025.11.08 - v3.2.2 - Chunel]
* 提供 本地保存和加载 功能
* 修改 `PyCGraph` 为 `pycgraph`,支持 `pip3 install pycgraph` 安装

Expand Down
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import pybind11

__PYCGRAPH_NAME__ = "pycgraph"
__PYCGRAPH_VERSION__ = "3.2.1"
__PYCGRAPH_VERSION__ = "3.2.2"
__PYCGRAPH_AUTHOR__ = "Chunel"
__PYCGRAPH_AUTHOR_EMAIL__ = "chunel@foxmail.com"
__PYCGRAPH_DESCRIPTION__ = "CGraph with python api wrapper by pybind11"
Expand Down
2 changes: 1 addition & 1 deletion src/UtilsCtrl/ThreadPool/UThreadPool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,12 @@ CVoid UThreadPool::monitor() {
bool busy = !primary_threads_.empty() && std::all_of(primary_threads_.begin(), primary_threads_.end(),
[](UThreadPrimaryPtr ptr) { return ptr && ptr->is_running_; });

CGRAPH_LOCK_GUARD lock(st_mutex_);
// 如果忙碌或者priority_task_queue_中有任务,则需要添加 secondary线程
if (busy || !priority_task_queue_.empty()) {
createSecondaryThread(1);
}

CGRAPH_LOCK_GUARD lock(st_mutex_);
// 判断 secondary 线程是否需要退出
for (auto iter = secondary_threads_.begin(); iter != secondary_threads_.end(); ) {
(*iter)->freeze() ? secondary_threads_.erase(iter++) : iter++;
Expand Down
2 changes: 1 addition & 1 deletion xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set_project("CGraph")

-- set project version
set_version("3.2.1")
set_version("3.2.2")

-- set language: c++11
set_languages("c++11")
Expand Down
Loading