If in a felony case the superior court sets the trial beyond the period of time specified in Section 1049.5, in violation of Section 1049.5, or continues the hearing of any matter without good cause, and good cause is required by law for such a continuance, either party may file a petition for writ of mandate or prohibition in the court of appeal seeking immediate appellate review of the ruling setting the trial or granting the continuance. Such a petition shall have precedence over all other cases in the court to which the petition is assigned, including, but not limited to, cases that originated in the juvenile court. If the court of appeal grants a peremptory writ, it shall issue the writ and a remittitur three court days after its decision becomes final as to that court if such action is necessary to prevent mootness or to prevent frustration of the relief granted, notwithstanding the right of the parties to file a petition for review in the Supreme Court. When the court of appeal issues the writ and remittitur as provided herein, the writ shall command the superior court to proceed with the criminal case without further delay, other than that reasonbly necessary for the parties to obtain the attendance of their witnesses.
The Supreme Court may stay or recall the issuance of the writ and remittitur. The Supreme Court's failure to stay or recall the issuance of the writ and remittitur shall not deprive the respondent or the real party in interest of its right to file a petition for review in the Supreme Court.
Ca. Pen. Code § 1511