mirror of
https://github.com/RatzzFatzz/MKVAudioSubtitleChanger.git
synced 2026-02-12 02:25:59 +01:00
Implement multi threading to improve throughput
This commit is contained in:
@@ -37,4 +37,15 @@ public class ConfigUtil {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static int getThreadCount() {
|
||||
try {
|
||||
return Integer.parseInt(new YAML(new File("config.yaml")).getString("threadCount"));
|
||||
} catch (YamlInvalidContentException | IOException e) {
|
||||
e.printStackTrace();
|
||||
} catch (YamlKeyNotFoundException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user