g_main_loop_new
I have an object that uses glib (g_main_loop_new) for its callbacks that i want to use to build a ROS node. How does the two loops spin and g_main_loop_run run at the same time?.
until now I have try this:
GMainLoop* main_loop = NULL;
main_loop = g_main_loop_new (NULL, FALSE);
thread t(g_main_loop_run, main_loop);
ros::spin();
t.join();
But just main_loop seams to be runing.