# Re: mustek backend in OS/2

Yuri Dario (mc6530@mclink.it)
Thu, 18 Jun 1998 09:10:22 +0100

- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: Miguel Alvarez Blanco: "Mustek Paragon 1200 SP Pro"
- Previous message: Yuri Dario: "Re: Rebuild with VisualAge C++"
- Maybe in reply to: Bohumir Horeni: "mustek backend in OS/2"

On Mon, 15 Jun 1998 20:43:57 MET, Bohumir Horeni wrote:

>(1) required for OS/2 if fork() used in backend

I found that it is more efficient to use a secondary thread for the reader process: I have patched the umax
backend in SANE 0.73, moving the code

if (s->reader_pid == 0)
{ .... }

into a function called OS2ReaderProcess, and then calling _beginthread() to run it.

That's because the forked process doesn't inherit the semaphore used by AspiRout$, and also fork() is
very inefficient under OS/2. I'm doing the same changes in the mustek backend.

Bye,

Yuri Dario

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com

- Next message: Miguel Alvarez Blanco: "Mustek Paragon 1200 SP Pro"
- Previous message: Yuri Dario: "Re: Rebuild with VisualAge C++"
- Maybe in reply to: Bohumir Horeni: "mustek backend in OS/2"