A Code Red lockdown kept students at Rolesville High School in their classrooms beyond the normal dismissal time Thursday while police investigated a threat to the school.