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-580255739 "NOTE that those functions do NOT return the current CPU. They return the CPU set assigned by the setaffinity() interfaces." You all understand that an application interface that returns the current CPU is not a usable thing. Within the OS, you can get the CPU number only in a critical section or with pre-emption disabled. You cannot do those things in applications. So the value is unpredictable an volatile if used by applications. For example, an application running on CPU A when the interface function is called may be running on CPU B when the inteface function returns. It is absolutely useless in any real world application.
---------------------------------------------------------------- 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
