Re: use of g_thread_exit



On Mon, 2007-03-26 at 10:21 +0530, Pritesh Kumar wrote:
> high all,
> in a video player application , i create a thread using g_thread_create() .
> upon meeting some condition , i exit the thread using g_thread_exit(NULL).
> 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.

I believe this is what the g_thread_join api call is for.  I think,
however, that it is a blocking call.  You'll want to read all the docs
the g_thread calls in the API docs.

> 
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]