Yes, you are correct. I noticed this after doing more research into the
notifier and event loop implementation in Tcl.
Per thread event loop can be achieve in Java easily. But there are some
outstanding questions:
1. In UNIX, TclBlend uses a pipe with non-blocking IO to wake up the Tcl
event l
> From: Mo DeJong <[EMAIL PROTECTED]>
>> > java::call AppendEventQueueThread queueVwaitEvent [java::getinterp]
>>
>> Note: this will NOT block the C Tcl shell because you are just posting an
>> event to be executed later. You have to use 'vwait' or 'update'
>> here to force the event loop to run
On Mon, 7 Aug 2000, Jiang Wu wrote:
> > From: Mo DeJong <[EMAIL PROTECTED]>
> >> > java::call AppendEventQueueThread queueVwaitEvent [java::getinterp]
> >>
> >> Note: this will NOT block the C Tcl shell because you are just posting an
> >> event to be executed later. You have to use 'vwait' or
On 7 Aug 2000, Jiang Wu wrote:
> On Mon, 07 August 2000, Mo DeJong wrote:
> >
> > package require java
> > set AQT [java::new AppendEventQueueThread [java::getinterp]]
> > $AQT start
> > set orig_numQueued [java::field $AQT numQueued]
> > java::call AppendEventQueueThread queueVwaitEvent [java::g
On Mon, 07 August 2000, Mo DeJong wrote:
>
> package require java
> set AQT [java::new AppendEventQueueThread [java::getinterp]]
> $AQT start
> set orig_numQueued [java::field $AQT numQueued]
> java::call AppendEventQueueThread queueVwaitEvent [java::getinterp]
Note: this will NOT block the C Tcl
On 7 Aug 2000, Jiang Wu wrote:
> On Mon, 07 August 2000, Mo DeJong wrote:
> > Did a vwait in the callback that was added to the queue
> > in Java (see source code). Then did a normal vwait on the
> > command line.
>
> I am going to try your example tonight. Is this what you mean by doing a norm
On Mon, 07 August 2000, Mo DeJong wrote:
> Did a vwait in the callback that was added to the queue
> in Java (see source code). Then did a normal vwait on the
> command line.
I am going to try your example tonight. Is this what you mean by doing a normal
vwait? Can you send me the exact comma
On 7 Aug 2000, Jiang Wu wrote:
> On Mon, 07 August 2000, Mo DeJong wrote:
> > It looks like we might have another problem there. If we call JavaGetEnv()
> > after Tcl Blend has been loaded into Java, the current thread
> > (it is a Java created thread) would have already been attached
> > to the
On Mon, 07 August 2000, Mo DeJong wrote:
> It looks like we might have another problem there. If we call JavaGetEnv()
> after Tcl Blend has been loaded into Java, the current thread
> (it is a Java created thread) would have already been attached
> to the JVM. Would calling env->AttachCurrentThrea
On 7 Aug 2000, Jiang Wu wrote:
> On Mon, 07 August 2000, Mo DeJong wrote:
>
> > >From section 3.2 in blendchanges.txt:
> >
> > load "tclblend", "tcl" .dll or .so (a)
> > call "new Interp()" in Java
> > invoke Java_tcl_lang_Interp_create() C function (b)
> > calls JavaSetupJava()
> >
On 7 Aug 2000, Jiang Wu wrote:
> On Sun, 06 August 2000, Mo DeJong wrote:
> > If I do 2 vwaits, then a single event is
> > processed from the event loop, but that seems to be all.
>
> How did you do 2 vwaits?
>
> -- Jiang Wu
>[EMAIL PROTECTED]
Did a vwait in the callback that was added to
On Sun, 06 August 2000, Mo DeJong wrote:
> If I do 2 vwaits, then a single event is
> processed from the event loop, but that seems to be all.
How did you do 2 vwaits?
-- Jiang Wu
[EMAIL PROTECTED]
--
[EMAIL PROTECTED] is brought to you by
the St
On Mon, 07 August 2000, Mo DeJong wrote:
> >From section 3.2 in blendchanges.txt:
>
> load "tclblend", "tcl" .dll or .so (a)
> call "new Interp()" in Java
> invoke Java_tcl_lang_Interp_create() C function (b)
> calls JavaSetupJava()
> invoke Java_tcl_lang_Interp_init() C function (c)
Hello,
yesterday I checked out the Tcl8.4 sources from the NetCVS
and noticed, that the C implementation of the clock command
had one improvement and one bug fix. The patch to incorporate
these changes into Jacl can be found here:
http://me.in-berlin.de/~v12/krischan/clock8.4.patch
Greetings,
Hello,
yesterday I finally finished the implementation of
Jacl' interp command. The new classes to add and the
patches to apply to the CVS sources of Jacl (as checked
out yesterday) can be found here:
http://ME.IN-Berlin.de/~v12/krischan/Interp
Some notes to former mails of Mo to this topic:
Ok, I just could not take it anymore so I rewrote JavaGetEnv.
The old implementation used a method for JDK 1.1 and another
completely different method for JDK 1.2. The methods were
almost the same but still different. Needless to say, this
was not a good situation at all.
The new impl uses #ifdef
16 matches
Mail list logo