[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: awt - gtkpeers - threading
From: |
Tom Tromey |
Subject: |
Re: awt - gtkpeers - threading |
Date: |
16 Nov 2003 11:35:56 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
>>>>> "Joseph" == Joseph Wenninger <address@hidden> writes:
Joseph> First a general question, are the gtk peers in the 0.06 tarball or in
Joseph> cvs supposed to work ?
No, not completely. There are still plenty of bugs. AWT is in active
development.
Joseph> 1) Why is there a field native_state in the GtkMainThread
Joseph> accessed from native functions, but nowhere defined in the
Joseph> class ?
Where do you see this? I don't see a field named native_state
anywhere. There is "native_state_table", but it is just an ordinary C
global, not a field.
Maybe this code has changed since 0.06; I didn't look.
Joseph> 2) Any ideas, opinions, suggestions how to use the gtk peer in a (I
Joseph> think it is called) green thread environment ?
The new standard Gtk thread code uses portable locking -- it uses JNI
calls to do its work. This should work for any threading system.
Offhand I don't know whether this has been made the default yet; you'd
have to read the source to see.
>From your reference to green threads, I assume you want to use these
AWT peers with the Sun JDK. Note that the peer interface is not
documented. There's no guarantee our peers will work with Sun's
implementation.
Tom