Add `block_while_running` option to `_ReadWriteThread`.
authorW. Trevor King <wking@drexel.edu>
Tue, 17 Apr 2012 16:22:22 +0000 (12:22 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 17 Apr 2012 16:35:41 +0000 (12:35 -0400)
commitd01aa71b31b3a39fd3301d0cca0292fad3d7e637
tree92810d298c858e122ecc522c2a43b0d1945f040b
parentc61ddc600ad08c0b4cc5ccd6617287d186b7f207
Add `block_while_running` option to `_ReadWriteThread`.

This way users don't need to understand the following distinctions:

* written to driver vs. output from card.
* `SDF_BUSY` vs. `SDF_RUNNING`.

The `subdevice.cancel` call in `_ReadWriteThread.block` is because the
`RUNNING` flag is cleared after output completes, but the `BUSY` flag
is not.  This may be a bug in Comedi.  I've asked on the mailing list,
but haven't heard back yet.
pycomedi/utility.py