+
+void lightrec_recompiler_pause(struct recompiler *rec)
+{
+ rec->pause = true;
+
+ pthread_mutex_lock(&rec->mutex);
+ pthread_cond_broadcast(&rec->cond);
+ lightrec_cancel_list(rec);
+ pthread_mutex_unlock(&rec->mutex);
+}
+
+void lightrec_recompiler_unpause(struct recompiler *rec)
+{
+ rec->pause = false;
+}