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::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.
The 'java::call AppendEventQueueThread queueVwaitEvent' does that.
The point it to call vwait from the Notifier dispatch.
Mo DeJong
Red Hat Inc
----------------------------------------------------------------
The TclJava mailing list is sponsored by Scriptics Corporation.
To subscribe: send mail to [EMAIL PROTECTED]
with the word SUBSCRIBE as the subject.
To unsubscribe: send mail to [EMAIL PROTECTED]
with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'.
An archive is available at http://www.mail-archive.com/tcljava@scriptics.com