patacongo commented on issue #37: examples: hello: Show CPU index when running 
in SMP mode
URL: 
https://github.com/apache/incubator-nuttx-apps/pull/37#issuecomment-580563032
 
 
   "But is it reasonable to follow Linux practice if POSIX doesn't define 
something but very useful(don't like up_cup_index)?"
   
   I agree, but this interface is not useful and will cause bugs if anyone were 
to actually do anything with it.  Just using it in a printf() is harmless (but 
might print the wrong value).  Making any decisions based on the CPU would 
would not work because the value is volatile and cannot be used in that way.
   
   So such an interface would be a support and maintainence problem because it 
is inherently buggy and returns incorrect values.  Best not to support it; best 
not to introduce a non-standard interface that provides no value.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to