ros-nao/nao_sensors — pull request #15 by jondy276 (2014-10-30 15:32:04+00:00)
Title: Replace volatile bool with boost::mutex

Volatile bool is not sufficient to prevent poll() and reconfigure() from executing concurrently.
This causes the nodelet to crash when poll() releases the image on a closed camera.
Here a mutex is introduced to guard the relevant critical sections.