Carbon


MPSetTaskStorageValue

Header: Multiprocessing.h Carbon status: Supported

Sets the storage value for a given index number.

OSStatus MPSetTaskStorageValue (
    TaskStorageIndex index, 
    TaskStorageValue value
);
Parameter descriptions
index

The index number whose storage value you want to set.

value

The value you want to set.

function result

A result code.

DISCUSSION

Typically you use MPSetTaskStorageValue to store pointers to task-specific structures or data.

Calling this function from within a task effectively assigns a value in a two-dimensional array cross-referenced by task storage index value and the task ID.

Also see the function MPGetTaskStorageValue.

VERSION NOTES

Introduced with Multiprocessing Services 2.0.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


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