Cog Start and Stop question
Don M
Posts: 1,653
I have a main object and within that main object I have a method that if I want to start calls object1 that launches in a new cog and within object1 it launches 2 additional identical objects (objects 2 & 3) into their own new cogs to work with object1.
My question is if I stop (cogstop) object1 does it automatically stop objects 2 & 3?
If it doesn't do I need to keep track of cog ID's so that I can stop them individually by number? I know I can get the ID's returned to me on startup so I am guessing I can assign them to a variable and address them (cogstop ID) that way if needed.
Thoughts?
Don
My question is if I stop (cogstop) object1 does it automatically stop objects 2 & 3?
If it doesn't do I need to keep track of cog ID's so that I can stop them individually by number? I know I can get the ID's returned to me on startup so I am guessing I can assign them to a variable and address them (cogstop ID) that way if needed.
Thoughts?
Don
Comments
-Phil
It hasn't been written yet....
Dave that is exactly what I was wondering. I think I know what to do. Thanks.