Re: Comedi: Can you use multiple threads with comedi_dio_bitfield?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 19 February 2004 08:55 pm, Michael Brooks wrote:
> Hi,
> I want to have a Linux application with multiple threads reading the
> same device with comedi_dio_bitfield. I am using different digital lines
> for different signals and it seems cleaner to have separate threads.  I
> am using the NI PCI-MIO-16.  Can anyone tell me of any potential
> problems with this approach?
> -thanks,
> Michael

It should be fine.  comedi_errno() might give some bogus results if you 
don't do any locking, but I imagine you could live with that.

- -- 
Frank

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQFAN3Eb5vihyNWuA4URAiLPAKCvC2kNBU641GWNQoNAi4LbEbKfLwCeKXet
65NMLopg2H+DKBKKur30io0=
=9HeH
-----END PGP SIGNATURE-----

Received on 2004-02-21Z14:54:19