-
Notifications
You must be signed in to change notification settings - Fork 4
Command interface
Start from version 2.2, you can type command to stdin to affect software behavior,
without have to restart or close.
All command are case-sensitive.
These command just change some status variable,
but have no "coercion" to force things to happen.
It depends on luck.
Try to tell software pause prefetch, equivalent to set next prefetch interval to infinity.
If prefetch is running, the rest of thread still in thread pool will skip to run.
This command must run after scan folder, or make sure no active scan folder is running.
Otherwise, two thread will end up to access same variable,
finally trigger a null or array out of bounds unhandled exception to crash the software.
Try to tell software resume prefetch, unfinished prefetch interval will not reserve.
For example, prefetch pause at interval timer 65/90 seconds,
after resume requested, the rest of 90-65=25 seconds will discard,
and start a new round of prefetch immediately.