COG Keyword - call

Call sends a message to the same cog that it is in. The custom message affects the cog's thread count just like any other message. Call is the only way to run custom message handlers.

NOTE: A Sleep in the called handler will not cause the caller to continue execution; the caller continues only when a return is reached in the called handler.

Syntax:

  call custom_msg;
  • Create:
This page was last modified 21:11, 22 August 2008.   This page has been accessed 816 times.