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-580564661
 
 
   sched_lock() is made available to applications via a syscall.  That was a 
very bad decision that I made long ago.  If pre-emption is disabled, then the 
task would be locked to a CPU and should be stable until sched_unlock() is 
called.  In that case, the CPU number would remain valid thoughout that 
interval (but might likely change when sched_unlock() is called).
   
   But I don't like the idea of using several non-standard interfaces to make a 
new non-standard interface work.  That just does not feel good to me.  I would 
prefer that we do not go this way at all, this is not in the spirit of 
OpenGroup.org and the Inviolable principles of the OS.
   
   

----------------------------------------------------------------
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