Electric.py
Queue size is one item to ensure that we catch underrun errors in the
consumer. Meter process will typically take 0.5 second samples.
Meter is a daemon process, it needs no input except for arguments to
construction.The queue used is a common queue so the item must be a tuple where the
first item is a tag saying what the second means. The queue is used
by the UI to send requests to the relay process. This means that the
relay process need only wait on one queue instead of repeatedly
polling several queues. Would be cleaner to use Occam's ALT function
but there appears to be no equivalent in Python (or Erlang for that
matter).How about python-csp?
No comments:
Post a Comment