manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Wright <daddy...@gmail.com>
Subject Re: LockGate
Date Fri, 19 Dec 2014 11:13:48 GMT
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 <
aeham.abushwashi@exonar.com> 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?
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message