MCPcopy Create free account
hub / github.com/chengwei0427/Lidar_IMU_Localization / stop_thread

Method stop_thread

include/ikd-Tree/ikd_Tree.cpp:206–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204
205template <typename PointType>
206void KD_TREE<PointType>::stop_thread()
207{
208 pthread_mutex_lock(&termination_flag_mutex_lock);
209 termination_flag = true;
210 pthread_mutex_unlock(&termination_flag_mutex_lock);
211 if (rebuild_thread)
212 pthread_join(rebuild_thread, NULL);
213 pthread_mutex_destroy(&termination_flag_mutex_lock);
214 pthread_mutex_destroy(&rebuild_logger_mutex_lock);
215 pthread_mutex_destroy(&rebuild_ptr_mutex_lock);
216 pthread_mutex_destroy(&points_deleted_rebuild_mutex_lock);
217 pthread_mutex_destroy(&working_flag_mutex);
218 pthread_mutex_destroy(&search_flag_mutex);
219}
220
221template <typename PointType>
222void *KD_TREE<PointType>::multi_thread_ptr(void *arg)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected