[sane-devel] Re: Neither get_select_fd() nor non-blocking (astrand@cendio.se)

zf zfan333 at 163.com
Tue Oct 31 02:31:47 UTC 2006


    Force backend support non-blocking mode ? I don't think it's a good idea. These work will be done more easily in frontend than backend.
----- Original Message ----- 
From: <sane-devel-request at lists.alioth.debian.org>
To: <sane-devel at lists.alioth.debian.org>
Sent: Monday, October 30, 2006 8:42 PM
Subject: sane-devel Digest, Vol 16, Issue 34


> Send sane-devel mailing list submissions to
> sane-devel at lists.alioth.debian.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.alioth.debian.org/mailman/listinfo/sane-devel
> or, via email, send a message with subject or body 'help' to
> sane-devel-request at lists.alioth.debian.org
> 
> You can reach the person managing the list at
> sane-devel-owner at lists.alioth.debian.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of sane-devel digest..."
> 
> 
> Today's Topics:
> 
>   1. Neither get_select_fd() nor non-blocking (astrand at cendio.se)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 30 Oct 2006 08:51:07 +0100 (CET)
> From: astrand at cendio.se
> Subject: [sane-devel] Neither get_select_fd() nor non-blocking
> To: sane-devel at lists.alioth.debian.org
> Message-ID: <Pine.LNX.4.64.0610300842180.7290 at maggie.lkpg.cendio.se>
> Content-Type: text/plain; charset="utf-8"
> 
> 
> I've realized that backends might not provide neither a file descriptor 
> for select() nor non-blocking mode. Why is this allowed? I guess this 
> means that applications, such as xsane, must use a separate thread or 
> process to read the data? IMHO, this puts a lot of unnecessary burden on 
> the application programmer. How common is it with backends with neither a 
> select FD nor non-blocking mode? How about adjusting the standard so that 
> backends must at least support one of these?
> 
> Regards, 
> -- 
> Peter Ã.strand ThinLinc Chief Developer
> Cendio AB http://www.cendio.se
> Teknikringen 3
> 583 30 Linköping Phone: +46-13-21 46 00
> 
> ------------------------------
> 
> _______________________________________________
> sane-devel mailing list
> sane-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/sane-devel
> 
> End of sane-devel Digest, Vol 16, Issue 34
> ******************************************
>


More information about the sane-devel mailing list