Re: Gthreads again
- From: Tristan Van Berkom <tvb gnome org>
- To: Fernando Apesteguía <fernando apesteguia gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Gthreads again
- Date: Mon, 24 Apr 2006 15:04:12 -0400
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]