Carbon


MPDeleteSemaphore

Header: Multiprocessing.h Carbon status: Supported

Removes a semaphore.

OSStatus MPDeleteSemaphore (
    MPSemaphoreID semaphore
);
Parameter descriptions
semaphore

The ID of the semaphore you want to remove.

function result

A result code.

DISCUSSION

Calling this function unblocks all tasks waiting on the semaphore and the tasks’ respective MPWaitOnSemaphore calls will return with the result code kMPDeletedErr.

Also see the function MPCreateSemaphore.

VERSION NOTES

Introduced with Multiprocessing Services 1.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)