sane-project-backends/sanei
Zdenek Dohnal 8acc267d5f sanei_thread.c: Use deferred cancellation mode
The change prevents hangs in projects who run scanimage in their unit
tests in rapid speeds, such as perl-Image-Sane.

Without the patch, you can reproduce the issue with this command:

`while true; do scanimage --verbose --device=test --batch-count=2; done`

The command hangs after several iterations.
2025-07-14 10:02:34 +02:00
..
Makefile.am Factoring of umax_pp_low functions concerning sys/io.h to sanei lib 2021-12-15 22:39:25 +02:00
linux_sg3_err.h Use URL to refer users to copies of the GPL and LGPL 2021-02-12 17:41:38 +09:00
os2_srb.h
sanei_DomainOS.c Use URL to refer users to copies of the GPL and LGPL 2021-02-12 17:41:38 +09:00
sanei_DomainOS.h spelling fixes for sane core 2020-08-29 09:18:04 +02:00
sanei_ab306.c sanei: Reuse sanei_directio in sanei_ab306 2021-12-15 22:39:31 +02:00
sanei_access.c Use URL to refer users to copies of the GPL and LGPL 2021-02-12 17:41:38 +09:00
sanei_auth.c Use URL to refer users to copies of the GPL and LGPL 2021-02-12 17:41:38 +09:00
sanei_codec_ascii.c Use URL to refer users to copies of the GPL and LGPL 2021-02-12 17:41:38 +09:00
sanei_codec_bin.c Use URL to refer users to copies of the GPL and LGPL 2021-02-12 17:41:38 +09:00
sanei_config.c various: convert pre-ANSI declarations to ANSI 2024-09-05 22:17:27 -07:00
sanei_config2.c Use URL to refer users to copies of the GPL and LGPL 2021-02-12 17:41:38 +09:00
sanei_constrain_value.c Use URL to refer users to copies of the GPL and LGPL 2021-02-12 17:41:38 +09:00
sanei_directio.c Factoring of umax_pp_low functions concerning sys/io.h to sanei lib 2021-12-15 22:39:25 +02:00
sanei_init_debug.c Use URL to refer users to copies of the GPL and LGPL 2021-02-12 17:41:38 +09:00
sanei_ir.c Use URL to refer users to copies of the GPL and LGPL 2021-02-12 17:41:38 +09:00
sanei_jpeg.c Replace variable self-assignments to avoid Clang warnings 2022-03-08 19:00:00 -05:00
sanei_lm983x.c Use URL to refer users to copies of the GPL and LGPL 2021-02-12 17:41:38 +09:00
sanei_magic.c Replace variable self-assignments to avoid Clang warnings 2022-03-08 19:00:00 -05:00
sanei_net.c Use URL to refer users to copies of the GPL and LGPL 2021-02-12 17:41:38 +09:00
sanei_pa4s2.c various: convert pre-ANSI declarations to ANSI 2024-09-05 22:17:27 -07:00
sanei_pio.c Remove unused functions which cause compiler warnings 2022-03-08 19:00:00 -05:00
sanei_pp.c sanei: Reuse sanei_directio in sanei_pp 2021-12-15 22:39:28 +02:00
sanei_pv8630.c Cast pointer arguments if needed when using "%p" format specifier 2022-03-08 19:00:00 -05:00
sanei_scsi.c various: convert pre-ANSI declarations to ANSI 2024-09-05 22:17:27 -07:00
sanei_tcp.c Use URL to refer users to copies of the GPL and LGPL 2021-02-12 17:41:38 +09:00
sanei_thread.c sanei_thread.c: Use deferred cancellation mode 2025-07-14 10:02:34 +02:00
sanei_udp.c Use URL to refer users to copies of the GPL and LGPL 2021-02-12 17:41:38 +09:00
sanei_usb.c various: convert pre-ANSI declarations to ANSI 2024-09-05 22:17:27 -07:00
sanei_wire.c sanei_wire: updated diag for size_t variables using %zu format 2023-02-20 15:25:46 -08:00