Hey there,
I'm using two threads : one for my GUI, one for my network library.
Here is my network library run function:
/* virtual */ void ZePurpleApi::run()
{
(...)
GMainLoop *loop = g_main_loop_new(NULL, FALSE);
g_main_loop_run(loop);
// Qt never gets there
exec();
}
/* virtual */ void ZePurpleApi::run()
{
(...)
GMainLoop *loop = g_main_loop_new(NULL, FALSE);
g_main_loop_run(loop);
// Qt never gets there
exec();
}
To copy to clipboard, switch view to plain text mode
- The library I'm using requires : g_main_loop_run(loop);
- Between my two threads I'm communicating using signals.
- I need to call exec() to receive signal from my GUI main thread.
Is it possible to exec the thread and then start the g_main_loop_run(loop); ?
Thanks.
Bookmarks