Re: Question about Threads y gtk+
- From: "Tor Lillqvist" <tml iki fi>
- To: ammoises yahoo com mx
- Cc: gtk-list gnome org
- Subject: Re: Question about Threads y gtk+
- Date: Fri, 3 Oct 2008 22:29:48 +0300
> in POSIX there is function.
> int pthread_kill(pthread_t thread, int sig);
> but with gtk+ how can I do this?
If your program is targeted at POSIX platforms anyway there is nothing
that prevents you from using the POSIX thread API. The GThread API is
just a thin wrapper around it anyway on POSIX.
And if you also need to target Windows, well, there is an
implementation of the POSIX thread API for Windows, too, and it does
implement pthread_cancel(). (That doesn't make using pthread_cancel()
necessarily a good idea, though.) Google for pthreads-win32.
] [Thread Prev