Home |
RTTarget-32 Programming Manual System Management BIOS (SMBIOS) Advanced Programmable Interrupt Controller (APIC) Function RTMPSelf Function RTMPSynchTimeStampCounters |
Function RTMPSelfRTMPSelf returns the index of the CPU the caller is running on: UINT RTMPSelf(void); In PIC mode, this function returns 0. In APIC mode, the return value will be in the range 0 .. RTMPCPUs(...)-1. Please note that under the multiprocessor scheduler of RTKernel-32 with preemptive scheduling, the return value can only be used if interrupts have been disabled before the call to RTMPSelf() until interrupts are enabled again. RTKernel-32 with preemptions enabled can move a thread to a different CPU at any time.
|