On Tue, Dec 30, 2008 at 5:17 PM, Howard G. <[email protected]> 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
