public void addWaiting(Object holder, Resource resource)
   {
      synchronized (waiting)
      {
         waiting.put(holder, resource);
      }
   }
public void addWaiting(Object holder, Resource resource)
   {
      synchronized (waiting)
      {
         waiting.put(holder, resource);
      }
   }
public void addWaiting ( Object holder , Resource resource ) { synchronized ( waiting ) { waiting . put ( holder , resource ) ; } }
Add a transaction waiting for a lock
@param holder
@param resource
Add a transaction waiting for a lock