CHG: Sleep a bit if there are no incoming events
BUG: Prevent a crash when we modify the histogram interactively
BUG: We need to protect all GUI interaction with a mutex