UnlockSemaphore

Unlocks a semaphore.

Synopsis

Err UnlockSemaphore( Item s )

Description

This is an alternate entry point for UnlockItem(). This procedure unlocks the specified semaphore. For information about semaphores, which are used to control access to shared resources, see the "Sharing System Resource's" chapter in the 3DO Portfolio Programmer's Guide.

Arguments

s
The item number of the semaphore to unlock.

Return Value

The procedure returns 0 if successful or an error code (a negative value) if an error occurs. Possible error codes include:

NOTOWNER
The semaphore specified by the s argument is not owned by the task.

Implementation

SWI implemented in kernel folio V20.

This is the same SWI as UnlockItem().

Associated Files

semaphore.h
ANSI C Prototype

See Also

LockSemaphore(), LockItem(), UnlockItem()