A lock, so that one can also cope with differences in altitude with boats.
1. boat retracts below
2. lower gate is closed
3. raising the water level in the lock chamber
4. upper gate is opened
Also works in the other direction, i.e. the throwers can also reduce the water level.