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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to