Hi Aeham,

Java synchronizers require that the wait() be inside a synchronized block.
Please read:

http://www.programcreek.com/2009/02/notify-and-wait-example/

Karl


On Fri, Dec 19, 2014 at 6:09 AM, Aeham Abushwashi <
[email protected]> wrote:
>
> OK.
>
> Wrt the patch, shouldn't the call to wait() in LockGate#waitForPermission
> be outside the synchronized block to allow other threads to carry on with
> their business, including calling LockGate#freePermission?
>

Reply via email to