]
Bela Ban commented on JGRP-1981:
--------------------------------
No, the lock is needed as we change state (`done`) after the condvar unblocks. Closing
this issue...
Request.execute() acquires unneeded lock
----------------------------------------
Key: JGRP-1981
URL:
https://issues.jboss.org/browse/JGRP-1981
Project: JGroups
Issue Type: Enhancement
Reporter: Bela Ban
Assignee: Bela Ban
Priority: Minor
Fix For: 3.6.7
{{Request.execute()}} at one point calls {{responsesComplete()}} which calls
{{ConditionVar.waitFor()}}, and both methods acquire the lock. The first lock acquition is
not required.
The effect is minimal as acquiring an already acquired lock is cheap.