Carbon


Memory Allocation Option Constants

Header: Multiprocessing.h

Specify optional actions when calling the MPAllocateAligned function.

enum {
    kMPAllocateClearMask = 1,
    kMPAllocateGloballyMask = 2,
    kMPAllocateResidentMask = 4,
    kMPAllocateNoGrowthMask = 16
};

Constant descriptions

kMPAllocateClearMask

Zero out the allocated memory block.

kMPAllocateGloballyMask

Allocate memory from in memory space that is visible to all processes. Note that such globally-allocated space is not automatically reclaimed when the allocating process terminates. By default, MPAllocateAligned allocates memory from process-specific (that is, not global) memory.

kMPAllocateResidentMask

Allocate memory from resident memory only (that is, the allocated memory is not pageable).

kMPAllocateNoGrowthMask

Do not attempt to grow the pool of available memory. Specifying this option is useful, as attempting to grow memory may cause your task to block until such memory becomes available.

VERSION NOTES

Introduced with Multiprocessing Services 2.0.


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