a door latch mechanism mounted in a door frame cooperates with a door bolt separating the cockpit compartment on an aircraft from the passenger compartment . the mechanism prevents a hijacker from entering the cockpit compartment and allows the door to open rapidly when a catastrophic decompression event occurs in the airplane .