The only danger I can see from stopping a cog that's already been stopped (say, in an object's start method) is that the cog in question may have been started subsequent to its first cogstop by a cognew elsewhere in the app. So it's always better for an object to remember the state of the cogs it spawns and not stop them redundantly.
"no effect" is a statement of state whereas "stopping a cog" is a process. The process doesn't change whether the affected cog is already stopped or not. The same things happen. Registers still get cleared. The necessary flip-flops still get forced to a zero state or whatever. If the cog is already stopped, you will see no effect.
I thought Heisenberg COGs would be immeasurable because the act of measuring them would change their state. I've seen a few like this recently. ... especially the ones that were stopped - which I just had to assume was the case but couldn't really tell other than knowing the practical effects of having a stopped COG.
I thought Heisenberg COGs would be immeasurable because the act of measuring them would change their state. I've seen a few like this recently. ... especially the ones that were stopped - which I just had to assume was the case but couldn't really tell other than knowing the practical effects of having a stopped COG.
The heisenberg cogs are quantum computing devices, making the Propeller the most powerful computing device in the known universe.
Unfortunately, the quantum wave function collapses whenever a hub or pin instruction is executed, so no-one has ever been able to get an answer out of them. But there are rumours that if you connect a speaker in to the appropriate pins, you can occasionally hear a very faint "miaow!"
I guess I should apologize for not starting on topic
Yes, by not doing so, you've irreversibly ripped the fabric of causality, and we shall surely be sucked into a giant wormhole as a consequence. Thanks a hackuva lot!
Comments
If it's already true, it doesn't become any more true.
The specified cog becomes stopped. If it's already stopped, it becomes stopped (still).
-Phil
Or maybe instead of just being stopped the cog is really really most seriously stopped :-)
-Phil
Dont forget the heisenberg cogs, which can be both stopped and executing at the same time. On those, you must use the catstop command.
Ross.
The heisenberg cogs are quantum computing devices, making the Propeller the most powerful computing device in the known universe.
Unfortunately, the quantum wave function collapses whenever a hub or pin instruction is executed, so no-one has ever been able to get an answer out of them. But there are rumours that if you connect a speaker in to the appropriate pins, you can occasionally hear a very faint "miaow!"
Ross.
-Phil