Theocacao
Leopard
Design Element
Comment on "How Transmission Does Cross-Platform"
by Erik — Feb 02
Is it just me or does there appear to be a bug in the snippet code? "onState" and "offState" are initialized to NO, and then in an if/else statement one of them will be set to YES. But only one of them. Then there is a check to see if they are both YES, which doesn't seem like it could ever be true, even with multiple threads, since the values being tested are stack variables.
Back to "How Transmission Does Cross-Platform"
Design Element

Copyright © Scott Stevenson 2004-2015