No person charged by indictment, information, complaint, or other accusatory pleading charging a criminal offense may bring a civil action for money or damages against a peace officer or the public entity employing a peace officer based upon conduct of the peace officer relating to the offense for which the accused is charged, including an act or omission in investigating or reporting the offense or arresting or detaining the accused, while the charges against the accused are pending before a superior court.
Any applicable statute of limitations for filing and prosecuting these actions shall be tolled during the period that the charges are pending before a superior court.
For the purposes of this section, charges pending before a superior court do not include appeals or criminal proceedings diverted pursuant to Chapter 2.5 (commencing with Section 1000), Chapter 2.6 (commencing with Section 1000.6), Chapter 2.7 (commencing with Section 1001), Chapter 2.8 (commencing with Section 1001.20), or Chapter 2.9 (commencing with Section 1001.50) of Title 6 of Part 2 of the Penal Code.
Nothing in this section shall prohibit the filing of a claim with the board of a public entity, and this section shall not extend the time within which a claim is required to be presented pursuant to Section 911.2.
Ca. Gov. Code § 945.3