Carbon


Task State Constants

Header: Multiprocessing.h

Specify what states you want to set or obtain when calling the MPExtractTaskState or MPSetTaskState functions.

enum {
    kMPTaskStateRegisters = 0,
    kMPTaskStateFPU = 1,
    kMPTaskStateVectors = 2,
    kMPTaskStateMachine = 3,
    kMPTaskStateException = 4,
    kMPTaskStateTaskInfo = 5
};

Constant descriptions

kMPTaskStateRegisters

The task’s general-purpose (GP) registers. The RegisterInformationPowerPC structure in MachineExceptions.h defines the format of this information.

kMPTaskStateFPU

The task’s floating point registers. The FPUInformationPowerPC structure in MachineExceptions.h defines the format of this information.

kMPTaskStateVectors

The task’s vector registers. The VectorInformationPowerPC structure in MachineExceptions.h defines the format of this information.

kMPTaskStateMachine

The task’s machine registers. The MachineInformationPowerPC structure in MachineExceptions.h defines the format of this information. Note that the MSR, ExceptKind, DSISR, and DAR registers are read-only.

kMPTaskStateException
kMPTaskStateTaskInfo

Static and dynamic information about the task, as described by the data structure MPTaskInfo. This task information is read-only.

VERSION NOTES

Introduced with Multiprocessing Services 2.0.


© 2000 Apple Computer, Inc. (Last Updated 7/13/2000)