Get the index of the CPU that a thread is currently running on
#include <sys/neutrino.h> unsigned int SchedGetCpuNum( void );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The SchedGetCpuNum() kernel call gets the index of the CPU that the calling thread is currently running on.
The CPU index.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |