/////////////////////////////////////////////////////////////////////////////////////////
| 77 | |
| 78 | ////////////////////////////////////////////////////////////////////////////////////////////// |
| 79 | void |
| 80 | pcl::TimeTrigger::setInterval (double interval_seconds) |
| 81 | { |
| 82 | std::unique_lock<std::mutex> lock (condition_mutex_); |
| 83 | interval_ = interval_seconds; |
| 84 | // notify, since we could switch from a large interval to a shorter one -> interrupt waiting for timeout! |
| 85 | condition_.notify_all (); |
| 86 | } |
| 87 | |
| 88 | ////////////////////////////////////////////////////////////////////////////////////////////// |
| 89 | void |