docs++
make the detector thread-safe