Add mutilple threads support for export image

This commit is contained in:
2025-09-14 13:37:15 +08:00
parent 3dbfaa866b
commit 0860ceb8a0
6 changed files with 281 additions and 81 deletions

View File

@@ -35,9 +35,14 @@ impl Counter {
/// Increments the count of script executions.
pub fn inc(&self, result: ScriptResult) {
match result {
ScriptResult::Ok => self.ok.fetch_add(1, SeqCst),
ScriptResult::Ignored => self.ignored.fetch_add(1, SeqCst),
};
ScriptResult::Ok => {
self.ok.fetch_add(1, SeqCst);
}
ScriptResult::Ignored => {
self.ignored.fetch_add(1, SeqCst);
}
ScriptResult::Uncount => {}
}
}
}