summaryrefslogtreecommitdiff
path: root/src/rmd_wm_is_compositing.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-11-09 14:47:48 -0800
committerVito Caputo <vcaputo@pengaru.com>2020-11-09 14:47:48 -0800
commit371ad8abf4494837a77ab6c443c0d534652e3dbd (patch)
treec7b7d5f64c42a13b92c598b35eb17ec62560350e /src/rmd_wm_is_compositing.h
parentcca2f79dfeb492926bd41619bd2ef931f77d00da (diff)
cache: overload syncer thread to also pre-allocate
This changes the syncer thread to always be created for writers, and makes it posix_fallocate() the cache file to the maximum size. When the syncer is disabled w/ms=0, it simply returns after the posix_fallocate. posix_fallocate errors are ignored, this is simply an opportunistic optimization. I have some concern about the glibc emulation mentioned in the man page, but writers are opened O_WRONLY which the notes say cause the emulation to fail with EBADF which is preferable, and I'm using O_WRONLY for the writers.
Diffstat (limited to 'src/rmd_wm_is_compositing.h')
0 files changed, 0 insertions, 0 deletions
© All Rights Reserved