Comedi and thread-safety

Hi,

there were some posts regarding this topic about a year ago:
https://cvs.comedi.org/pipermail/comedi/2003-March/004302.html

These make me believe that I don't have to expect problems if I
serialise access to specific subdevices each with a mutex. (Use
pthread_mutex or comedi_lock()? Does comedi_lock() on a locked subdev
wait for the lock to be released or does it return EBUSY?) 
Parallel access to different subdevices should be all right. Right?

Or would it be even safe to e.g. comedi_read() one subdevice with
several threads in parallel? Probably not?

Oh, and one more question: What operations can be performed on a
subdevice while a comedi_command e.g. for recording is in progress?

Any comment by someone with knowledge of the code or own experience with
multithreaded comedi programs would be greatly appreciated.

Thanks,
Jan

Received on 2005-03-04Z12:09:38