diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2020-01-26 14:13:42 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2020-02-05 22:00:28 +0200 |
commit | ec26f3ace5f9b260ca91508030f07465ae2f9f78 (patch) | |
tree | 36c2c61c775b6e449c05254901796a3efbd93ba2 /src/liblzma/common/hardware_physmem.c | |
parent | xz: Refactor io_read() a bit. (diff) | |
download | xz-ec26f3ace5f9b260ca91508030f07465ae2f9f78.tar.xz |
xz: Fix semi-busy-waiting in xz --flush-timeout.
When input blocked, xz --flush-timeout=1 would wake up every
millisecond and initiate flushing which would have nothing to
flush and thus would just waste CPU time. The fix disables the
timeout when no input has been seen since the previous flush.
Diffstat (limited to 'src/liblzma/common/hardware_physmem.c')
0 files changed, 0 insertions, 0 deletions