Re: signals and threads



On Wed, Dec 07, 2005 at 12:46:28PM -0500, Tristan Van Berkom wrote:
May I just ask why you think you need to use threads in the
first place ?
It is more convenient. :)
It is difficult to handle many external events whithout threads.
Each event (data stream) needs own window and set of widgets (depends on data
type) to interact. Events may be handled in parallel.
I have no problems to use gtk without threads. I had no problems with pthreads
in past. But now... :)

BTW, Can i use pthread calls? Or i need to use only glib thread support?
Its better to use the gthread api only; while using pthreads directly
might work, it wont be portable & it wont be garaunteed to work
properly either.
Ok. What about a sockets and file io? Glib has such support, but
it's more convenient for me to make direct calls sometimes.




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