You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2019/10/10 01:59:06 UTC
[GitHub] [incubator-doris] shengyunyao commented on a change in pull request
#1942: Fixed: add mutex for cpu_info init()
shengyunyao commented on a change in pull request #1942: Fixed: add mutex for cpu_info init()
URL: https://github.com/apache/incubator-doris/pull/1942#discussion_r333302230
##########
File path: be/src/util/cpu_info.cpp
##########
@@ -81,6 +81,7 @@ int CpuInfo::max_num_numa_nodes_;
unique_ptr<int[]> CpuInfo::core_to_numa_node_;
vector<vector<int>> CpuInfo::numa_node_to_cores_;
vector<int> CpuInfo::numa_node_core_idx_;
+pthread_mutex_t CpuInfo::init_mutex_;
Review comment:
This problem has been fixed in [1826](https://github.com/apache/incubator-doris/pull/1826) with same way, in which use a mutex to lock when init(). So I close this now.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org