zlib icon indicating copy to clipboard operation
zlib copied to clipboard

Explicitly return thread interrupt state in `zstream_run_func`

Open ianks opened this issue 2 years ago • 0 comments

Previously, there were race conditions checking the interrupt flag when checking whether to retry zstream_run_func. Instead of relying on the volatile args->interrupt state, we now explicitly signal the function returned due to an interrupt so it can be retried safely.

fixes #57

ianks avatar Jan 11 '24 21:01 ianks