int
main(int argc, char *argv[])
{
- GThread *gloopthread;
+ GThread *gexamplethread;
// Parse arguments
if (argc > 4 || argc < 2 || argv[1][1] != '\0') {
// Run the mainloop and the example thread
exit_thread = FALSE;
- gloopthread = g_thread_new("example thread", &example_thread, NULL);
+ gexamplethread = g_thread_new("example thread", &example_thread, NULL);
g_main_loop_run (gloop);
exit_thread = TRUE;
g_main_loop_unref(gloop);
- g_thread_join (gloopthread);
- g_thread_unref (gloopthread);
+ g_thread_join (gexamplethread);
return EXIT_SUCCESS;
}
int
main(int argc, char *argv[])
{
- GThread *gloopthread;
+ GThread *gexamplethread;
// Parse arguments
if (argc > 4 || argc < 2 || argv[1][1] != '\0') {
// Run the mainloop and the example thread
exit_thread = FALSE;
- gloopthread = g_thread_new("example thread", &example_thread, NULL);
+ gexamplethread = g_thread_new("example thread", &example_thread, NULL);
g_main_loop_run (gloop);
exit_thread = TRUE;
g_main_loop_unref(gloop);
- g_thread_join (gloopthread);
- g_thread_unref (gloopthread);
+ g_thread_join (gexamplethread);
return EXIT_SUCCESS;
}