Re: my summary on how to use gtk with threads

2007-05-25 Thread Felix Kater
On Thu, 24 May 2007 01:03:25 +1000 Andrew Cowie [EMAIL PROTECTED] wrote: http://research.operationaldynamics.com/blogs/andrew/#gtk-thread-awareness Keep on. :-) I didn't quite agree with this conclusion: do not use gdk_threads_set_lock_functions() to facilitate (a) as that was rather

Re: my summary on how to use gtk with threads

2007-05-23 Thread Andrew Cowie
On Sun, 2007-05-20 at 12:15 +0200, Felix Kater wrote: here is my short summery of how to use gtk with threads Ironically, your email rolled in Monday right after I had managed to come up with most of the same information independently. I just blogged about my own findings which are fairly close

my summary on how to use gtk with threads

2007-05-20 Thread Felix Kater
Hi, here is my short summery of how to use gtk with threads, ordered by the main problems to be worked around. I aimed to find a small set of *general* rules to follow rather than solutions for individual cases. So this guides shall turn gtk's thread awareness into thread safety--for those who

[GTK with threads]

2007-05-18 Thread Luca Sangemi
Hello, we got a problem with an application we are developing , GTK+ based. It's a p2p application, based on a protocol similar to gnutella. Actually, it's quite simple: it's a project for a university course. Our main() create a pthread for a server, that is a thread that accepts connections on

GTK+ and threads question - main GTK+ lock.

2006-11-16 Thread Przemyslaw Tokarski
Hello list ! I'm in the process of coding a multithreaded GTK+ application. The application opens a window which contenst is being updated by a worker thread, however it is possible that the window does not exist anymore (it received a delete-event signal) while the worker thread still tries

Re: GTK and threads

2006-02-06 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 kornelix wrote: Brian J. Tarricone wrote: You're looking at this in an overly-complicated way. Here are a few guidelines, all of which probably have appropriate documentation somewhere: ... Sadly this is the typical state of documentation for

Re: GTK and threads

2006-02-06 Thread Tor Lillqvist
kornelix writes: I hope you will indulge me. I don't recall any counterparts in Win32 to these wrapper functions (gtk/gdk init / enter / leave). Perhaps I am off base, but I think Win32 takes care of its own locking and threading business. Well, surprise, as far as I know, it doesn't. For

Re: GTK and threads

2006-02-06 Thread Michael Torrie
kornelix wrote: Thanks to the three of you for your help and information. I will continue trying to make GTK work for my threaded application, and post progress (or lack thereof). I am still confused (by apparently conflicting inputs from the GTK FAQ and yourselves) about when I must use

Re: GTK and threads

2006-02-06 Thread kornelix
This FAQ entry is where I started from. My first attempt at making threads work resulted in all threads running one after the other, in series instead of in parallel, because I was locking the whole thread with gdk_threads_enter() at the beginning. I progressed to trying to lock only the

Re: GTK and threads

2006-02-06 Thread Michael Torrie
kornelix wrote: Thanks. I eagerly anticipate your example. I have attached a sample file that uses threads in the way you described in your last post. The gui consists of a single text display and a button. When you click the button, a new thread is started that periodically (every

RE: GTK and threads

2006-02-06 Thread Boncek, John
Subject: Re: GTK and threads kornelix wrote: Thanks. I eagerly anticipate your example. I have attached a sample file that uses threads in the way you described in your last post. The gui consists of a single text display and a button. When you click the button, a new thread is started

Re: GTK and threads

2006-02-06 Thread Alan M. Evans
On Mon, 2006-02-06 at 11:22, Michael Torrie wrote: I have attached a sample file that uses threads in the way you described in your last post. I generally like to make code examples compile without warning. Did you even try to compile this?

Re: GTK and threads

2006-02-06 Thread Michael Torrie
Alan M. Evans wrote: I generally like to make code examples compile without warning. Did you even try to compile this? Of course. It definitely compiles. and runs without crashing. :) I'll ignore your snippy tone and say that, yes eliminating warning is a good thing. However for this

Re: GTK and threads

2006-02-06 Thread Michael Torrie
Boncek, John wrote: How did you get an attachment to work with the list? I have never known that to work and often wished it would. I simply attached it normally and sent it off! Perhaps you have some attachment filtering on your mail server that you send through? I don't know. Michael

GTK and threads

2006-02-05 Thread kornelix
Thanks to the three of you for your help and information. I will continue trying to make GTK work for my threaded application, and post progress (or lack thereof). I am still confused (by apparently conflicting inputs from the GTK FAQ and yourselves) about when I must use which wrapper calls