# DeleteSemaphore

Deletes a semaphore.

### Synopsis

`Err DeleteSemaphore( Item s )`

### Description

This macro deletes a semaphore.

For information about semaphores, which are used to control access to shared resources, see the Sharing System Resources chapter in the 3DO Portfolio Programmer's Guide.

### Arguments

s
  The item number of the semaphore to be deleted.

### Return Value

The macro returns a value greater than or equal to 0 if successful or an error code if an error occurred.

### Implementation

Macro implemented in semaphore.h V20.

### Associated Files

semaphore.h
  ANSI C Macro

### Notes

As with all items, the item number of a deleted semaphore is not reused. If a task specifies the item number of a deleted semaphore, the kernel informs the task that the item no longer exists.

### See Also

``CreateSemaphore`()`

#