Howdy!

I'm working on an OWFS project for a client, and quite like what I see 
so far, especially the Python interface.

I have a question I haven't seen in the docs, so if it's in there, 
please feel free to point me in the correct direction. :)

I'm using this configure command:

./configure --enable-owfs --disable-owhttpd --disable-owftpd --disable-cache 
--enable-usb --enable-mt --enable-owpython --prefix=/usr/local

Configure prints out many things at the end, this among them:

           Multithreading is enabled

What I'd like to know is if the Python library is thread safe.  Can I 
have multiple threads running (each with their own sensor objects) and 
make multiple simultaneous reads into OWFS (most likely over a USB 
connection).  Or do I need to serialize all my reads?

Also, I've noticed that the connection method (USB, HTTP, etc) is set at 
the module global level in the Python OW module. What is the 
recommended method for having some sensors on USB and some on HTTP or 
the like?

Thanks!

j

-- 
Joshua J. Kugler - Fairbanks, Alaska
Azariah Enterprises - Programming and Website Design
[email protected] - Jabber: [email protected]
PGP Key: http://pgp.mit.edu/  ID 0x73B13B6A

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to