I would like to know if there are dangers with spawning of several threads, each of which creates its own udev context and begins to control hardware changes. It would seem that if each thread has its own udev context, everything is in order. However, if calls of type udev_newor udev_monitor_new_from_netlinkwill access global / static variables, then problems may arise.
Since neither README nor the documentation mentions multithreading, I ask about it here. Does anyone know anything else?
source
share