Re: Question about Threads y gtk+



> 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.

--tml


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