diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-07-12 10:56:36 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-07-12 10:56:36 -0700 |
commit | 99bc91a3c939e07f2d754a67dce60a55d509b3c1 (patch) | |
tree | 68b8457a3906e4a1e28b325746799afbca9619f7 /src/rmd_jack.h | |
parent | 95e8bdaa25c9bf840c41995aac3fb141468a72b3 (diff) |
get_frame: insert brief sleep when paused
rmdGetFrame() can't just block on pause_cond because it services the
event loop, which may be the very thing responsible for unpausing
when not triggered by an external signal.
The existing code handles this correctly but it spins on polling
the paused flag and running the event loop when paused.
This commit just adds a short delay to that cycle so the rmdGetFrame
thread doesn't pointlessly burn CPU while paused.
Diffstat (limited to 'src/rmd_jack.h')
0 files changed, 0 insertions, 0 deletions