[concurrency-interest] dl.util.concurrent.BoundedBuffer.offer

Doug Lea dl@cs.oswego.edu
Thu, 2 Dec 2004 06:36:07 -0500


> Is there a reason to have the line
> long waitTime = msecs;
> in EDU.oswego.cs.dl.util.concurrent.BoundedBuffer.offer?
> Why don't use 'msecs' directly?

Because of the line in the loop:

        waitTime = msecs - (System.currentTimeMillis() - start);

-Doug