In non-blocking mode, lowest-level read protocols are supposed block only for a short amount of time to let retry_transfer_wrapper() check for interrupts. Also, checking the interrupt_callback in the receiving thread is wrong, as interrupt_callback is not guaranteed to be thread-safe and the job is already done by retry_transfer_wrapper(). The error code was also incorrect. Bug reported by Andrey Utkin.pull/3/merge
parent
d9f26a0d71
commit
463705bd1c
1 changed files with 10 additions and 8 deletions
Loading…
Reference in new issue