[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Channels versus Methods



Thomas Umland wrote:

>   public synchronized Object read (CallChannelFunctionInterface
>                                    function) {
>     if (data.getState () == ChannelDataStore.EMPTY) {

Is this the pathological wait/notify Pooh-trap? I think you might need
    while (data.getState () == ChannelDataStore.EMPTY) {

instead. (Someone will correct me if I'm wrong, no doubt)

Rick