Re: use of g_thread_exit
- From: jcupitt gmail com
- To: "Pritesh Kumar" <priteshkr tataelxsi co in>
- Cc: gtk-list gnome org
- Subject: Re: use of g_thread_exit
- Date: Mon, 26 Mar 2007 13:37:16 +0000
On 3/26/07, Pritesh Kumar <priteshkr tataelxsi co in> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]