| 191 | |
| 192 | template <typename PointType> |
| 193 | void KD_TREE<PointType>::start_thread() |
| 194 | { |
| 195 | pthread_mutex_init(&termination_flag_mutex_lock, NULL); |
| 196 | pthread_mutex_init(&rebuild_ptr_mutex_lock, NULL); |
| 197 | pthread_mutex_init(&rebuild_logger_mutex_lock, NULL); |
| 198 | pthread_mutex_init(&points_deleted_rebuild_mutex_lock, NULL); |
| 199 | pthread_mutex_init(&working_flag_mutex, NULL); |
| 200 | pthread_mutex_init(&search_flag_mutex, NULL); |
| 201 | pthread_create(&rebuild_thread, NULL, multi_thread_ptr, (void *)this); |
| 202 | printf("Multi thread started \n"); |
| 203 | } |
| 204 | |
| 205 | template <typename PointType> |
| 206 | void KD_TREE<PointType>::stop_thread() |
nothing calls this directly
no outgoing calls
no test coverage detected