13
0

Add preference to configure Disk I/O Thread priority

This commit is contained in:
Robin Gareus 2024-10-14 20:59:59 +02:00
parent 63d3d1ff3d
commit 87fdec1c51
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -4950,6 +4950,19 @@ These settings will only take effect after %1 is restarted.\n\
procs->set_note (string_compose (_("This setting will only take effect when %1 is restarted."), PROGRAM_NAME));
add_option (_("Performance"), procs);
#ifndef PLATFORM_WINDOWS
ComboOption<int32_t>* iotp = new ComboOption<int32_t> (
"io-thread-policy",
_("Disk I/O thread scheduling policy"),
sigc::mem_fun (*_rc_config, &RCConfiguration::get_io_thread_policy),
sigc::mem_fun (*_rc_config, &RCConfiguration::set_io_thread_policy)
);
iotp->add (0, _("No priority"));
iotp->add (1, _("Realtime (FIFO)"));
iotp->add (1, _("Realtime (Round Robin)"));
add_option (_("Performance"), iotp);
#endif
}
/* Image cache size */