On 3/26/07, Pritesh Kumar <[EMAIL PROTECTED]> wrote:
> NOW  i want to perform a operation in "int main()" function of my
> application only if the above mentioned thread has exited successfully.
> is there a way to do this. how can the "int main" know if the created thread
> has exited or not.

g_thread_join()?

http://developer.gnome.org/doc/API/2.0/glib/glib-Threads.html#g-thread-join

This will block if the thread has not exited yet. You'll need to send
a "I'm about to exit, please call g_thread_join()" message from the
worker.

John
_______________________________________________
gtk-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to