ruby / zlib

Ruby interface for the zlib compression/decompression library
Other
50 stars 35 forks source link

Explicitly return thread interrupt state in `zstream_run_func` #74

Open ianks opened 9 months ago

ianks commented 9 months ago

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