If done within the same thread, yes.

On 13 Nov 2009, at 09:12, Sergio Bossa wrote:

> On Thu, Nov 12, 2009 at 9:32 PM, Alex Miller <amil...@terracottatech.com> 
> wrote:
> 
>> Tim rightly pointed at ConcurrentDistributedMap.createFinegrainedLock(K)
>> which will return you a FineGrainedLock object (with tryLock methods) that
>> lets you accomplish the equivalent of tryLockEntry().  Is that sufficient?
> 
> It seems to suit my needs, just a question: are locks reentrant? That
> is, if I manually get a FinegrainedLock for a given key K, and by
> holding the same lock I also put a value on the map for that key
> (causing another call to ManagerUtil.beginLock(K)), is the lock call
> for K reentrant?
> 
> -- 
> Sergio Bossa
> Software Passionate and Open Source Enthusiast.
> URL: http://www.linkedin.com/in/sergiob
> _______________________________________________
> tc-forge-dev mailing list
> tc-forge-...@lists.terracotta.org
> http://lists.terracotta.org/mailman/listinfo/tc-forge-dev

--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Flytecase Band - http://flytecase.be
Music and words - http://gbevin.com

_______________________________________________
tc-dev mailing list
tc-dev@lists.terracotta.org
http://lists.terracotta.org/mailman/listinfo/tc-dev

Reply via email to