[C.CC USERS] Latest cat deterrent code

Martin Ellis ellism88 at gmail.com
Tue Jan 8 14:41:36 GMT 2013


Hi,

Quick scan of the code looks ok.
You seem to have a redundant time-out on spray, which might causes
un-necessaries polling.
I would also be tempted to move everything in main under the SEQ into it's
own "brain" PROC.

--
M


On Mon, Jan 7, 2013 at 10:40 PM, James Brown <james.brown4994 at gmail.com>wrote:

> Latest version of my cat deterrent attached.
>
> Quite a long journey but I think it is now more or less there:
> - monitors cat flap to arm or disarm
> - new generic pin monitor that has a "suspend" function so that once
> triggered it will deactivate for a specified period of time
> - a generic pin timeout that will emit a signal if a pin remains low for a
> period of time (used for a flow switch lockout)
> - a new generic blinker which can be terminated or restarted at will,
> real-time
> - all procs terminate gracefully
>
> Any comments / improvements gratefully received.
>
>
> _______________________________________________
> users mailing list
> users at concurrency.cc
> http://lists.concurrency.cc/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.concurrency.cc/pipermail/users/attachments/20130108/e88c03da/attachment.htm>


More information about the users mailing list