uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard G." <howard...@yahoo.com>
Subject Re: Threads in UIMA
Date Wed, 31 Dec 2008 18:24:57 GMT
Sounds good, I'll try it -- Thanks!


--- On Tue, 12/30/08, Adam Lally <alally@alum.rpi.edu> wrote:

> From: Adam Lally <alally@alum.rpi.edu>
> Subject: Re: Threads in UIMA
> To: uima-user@incubator.apache.org, howardg22@yahoo.com
> Date: Tuesday, December 30, 2008, 5:57 PM
> On Tue, Dec 30, 2008 at 5:17 PM, Howard G.
> <howardg22@yahoo.com> wrote:
> > My problem is this:  in Main-thread, mCPE.process()
> returns right away; it does not wait around to make sure
> that the CPE finished OK.  I need a way to do that.  It
> would work if Main-thread could do a join() on
> BaseCPMImpl-Thread, but I don't see any way to do that.
> >
> > Any ideas?
> >
> 
> Hi Howard,
> 
> You can do this by waiting for the the
> StatusCallbackListener's
> collectionProcessComplete() method to be called.  For
> example the main
> thread could call wait() on the StatusCallbackListenerImpl
> instance,
> and then
> StatusCallbackListenerImpl.collectionProcessComplete() can
> call notifyAll.
> 
>  -Adam

Mime
View raw message