PDA

View Full Version : cog ID



Guyvo
09-22-2007, 04:28 PM
Hi props,

Is it possible to get the cog ID when running a SPIN program ? (Something like the windows threadid)
Of course it can be kept in a variable set before the start of the cogs but it would be nice to get it from the propeller framework. I don't know if the cogs have a number inside the prop because they seems to be taken of the avaiable pool with the cognew().

Guy

hippy
09-22-2007, 07:41 PM
@ Guyvo : Have you looked at "cogid" in the Propeller manual ? Also read the "cognew" and "coginit" sections.

deSilva
09-22-2007, 07:47 PM
Yes, please do http://forums.parallax.com/images/smilies/smile.gif

Guyvo
09-22-2007, 08:43 PM
I'm sorry stupid question of me !
Of course COGID returns the number of the executing COG.

I will look manual first now http://forums.parallax.com/images/smilies/wink.gif

Thnx
Guy