Re: Gthreads again



Fernando Apesteguía wrote:
[...]
Now, I'm using GThreads. I don't perform a pthread_cancel nor an equivalent
for GThreads, but the application appears to run well. Does gtk_main_quit()
kill the secondary thread properly or should I expect a crash of my
application?

Threads are allowed to run whether there is a GMainLoop, gtk_main() or
whatever else running in any other thread; if you are running gtk_main()
from a created thread; gtk_main_quit will not kill its own thread.

Cheers,
                 -Tristan



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