Add preference to configure Disk I/O Thread priority
This commit is contained in:
parent
63d3d1ff3d
commit
87fdec1c51
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user