We report on what we believe to be the first active mode locking of near-degenerate, doubly and singly resonant cw-pumped optical parametric oscillators (OPOs). We show experimentally that a steady-state regime of short pulses is reached in a few tens of microseconds under cw pumping. The oscillation buildup dynamics of both OPOs is also explored, evidencing an unusual transient behavior in the mode-locking process.