\input manualMacros.tex
\manBegin
\manPageInfo{RCI Reference Manual}{}{}
\manTitle{rciCpu}{3}
\manSection{NAME}
{\rightskip=0ptplus1fil
{\tt \manName{rciCpu}}
-- CPU number of the current RCI task.
}
\manSection{USAGE}
\cverbatim
extern int rciCpu;
@endcverbatim
\manSection{DESCRIPTION}
This variable contains the number of the CPU on which code is currently
running. It is set by the RCI monitor when the CPU is first loaded.
CPU number {\tt 0} is the arbiter CPU.

This variable is particularly useful for doing code initializations that
are CPU dependent. For instance, constructions like the following
are used in several places within RCI and RCCL:
\cverbatim
        static int perCpuInitDone;

        if (perCpuInitDome != rciCpu)
         { ... do initializations specific to this CPU ...
         } @endcverbatim

\manSection{SEE ALSO}
\raggedright
{\tt rciCreate(3)}.
\manEnd
\end
