Return-Path: Delivered-To: apmail-incubator-uima-user-archive@locus.apache.org Received: (qmail 74288 invoked from network); 31 Dec 2008 21:15:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Dec 2008 21:15:25 -0000 Received: (qmail 23507 invoked by uid 500); 31 Dec 2008 21:15:25 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 23479 invoked by uid 500); 31 Dec 2008 21:15:24 -0000 Mailing-List: contact uima-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: uima-user@incubator.apache.org Delivered-To: mailing list uima-user@incubator.apache.org Delivered-To: moderator for uima-user@incubator.apache.org Received: (qmail 30996 invoked by uid 99); 31 Dec 2008 18:25:27 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=lp0v3xgBJ7HRGFewGmfIpc8G6BlO7UIJZD/NyR1jEQaQwZnZ9kE0GCtMdqpIAbcVRYEWR7tXYe6RizRJuwTYKuN6XjF8oqXVUsbV5R+9S2pLowYt/PHL722u/qmXKjGKEHBK30qEOkIkOWWllyfnNIBC7FAXN6g4mxMC7zMMiRI=; X-YMail-OSG: HxaZcY8VM1mte.tAXVLwWbKbIYvo.MiUXje6w3r7TElYyQDl3BmbgdSz5az6LMgx96qxMK9x0l9ry6azseJv10WAnuPKMrxqEBrVcVNnR9rEpTRe0GP5kYSOjyAjbvYDNcFklixIWx0gCOcV80IuOI6ZO1Kk5PSbA1yQfu8ndaurg42gvzQFbAkrtlQTJW5ho4e0ztfiU1slsyRb8aFtcM8p79qylb8- X-Mailer: YahooMailWebService/0.7.260.1 Date: Wed, 31 Dec 2008 10:24:57 -0800 (PST) From: "Howard G." Reply-To: howardg22@yahoo.com Subject: Re: Threads in UIMA To: uima-user@incubator.apache.org In-Reply-To: <2787e08a0812301457t2fe33f33m53c5c53b6a4e9ff1@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <890442.32301.qm@web51902.mail.re2.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Sounds good, I'll try it -- Thanks! --- On Tue, 12/30/08, Adam Lally wrote: > From: Adam Lally > 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. > 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