UnlockItem

Unlocks a locked item.

Synopsis

Err UnlockItem( Item s )

Description

This procedure unlocks the specified item.

Note: Currently, semaphores are the only items that can be locked. You can also unlock semaphores by calling UnlockSemaphore().

Arguments

s
The item number of the item to be unlocked.

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 item specified by the s argument is not owned by the task.

Implementation

SWI implemented in kernel folio V20.

This is the same SWI as UnlockSemaphore().

Associated Files

item.h
ANSI C Prototype

See Also

DeleteItem(), LockItem(), UnlockSemaphore()