Re: Gthreads again



Fernando Apesteguía wrote:
And how to kill the gthread if there is not something like pthread_cancel?

(Thanks for your patience)

Tell the thread it has to exit
   o through a variable & mutex/condition
   o through any form of ipc (maybe simply a pipe())

call g_thread_join() from the main thread.

Now I'm not %100 sure about the next bit... but I think
you can simply use the thread pid and send it a term or kill
signal (for cases dealing with blocking IO for example).

Cheers,
                       -Tristan



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