--  a protected procedure that waits while it holds its object's lock
package Slow is
   protected Gate is
      procedure Pass;
   private
      Count : Natural := 0;
   end Gate;
end Slow;
