gearman-plugin/src
James E. Blair 2cb540bf51 Use more fine-grained synchronization in GearmanProxy
This undoes some of the previous change.  In particular, calling
something that could affect a NodeAvailabilityMonitor's lock
(eg in canTake or the init methods in createExecutorWorkersOnNode)
can deadlock on trying to obtain the Queue lock while holding the
GearmanProxy lock.

Instead, lock on just the handle lists where necessary, and try
to do serious work outside of that lock.

Change-Id: I4c1ed6c7a4f5586c1034651a649bbbd420eacdd7
2013-08-14 14:50:14 -07:00
..
main Use more fine-grained synchronization in GearmanProxy 2013-08-14 14:50:14 -07:00
test/java/hudson/plugins/gearman Use more fine-grained synchronization in GearmanProxy 2013-08-14 14:50:14 -07:00