Re: [gtk-list] threads



On Thu, 28 May 1998, fractture wrote:

> I heard from someone that gtk was thread safe now.
> Is this true?

That's on the 1.1 feature list.  Or at least that's what I heard.  :)

In the meantime, there's nothing stopping you from using threads in GTK.
I'm almost finished integrating threads in the
much-talked-about-but-not-yet-realeased fractal program I'm working on.
Since I'm using C++, I defined a "thread box" which takes a void *'ed
function and starts and stops the thread through a start () and stop ()
function.  It communicates with GTK via a thread safe Queue (which I
defined from scratch).  Both GTK and my fractal drawing thread access this
queue to relay data from one end to another.  So far it works rather
spiffily.

It will be released soon!  I swear!  :)

                                      - Dave

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  Name:  David Finton                  | "All free software is in Beta.  If
 Email:  dfinton@d.umn.edu             |  there is a free software package
   Web:  http://www.d.umn.edu/~dfinton |  bearing the version number 1.0 or
                                       |  greater, it is obsolete and must
                                       |  be replaced immediately by a
                                       |  newer, better Beta version."
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-




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