The onset of shear flow turbulence