Deleting a Semaphore


To delete a semaphore, use the DeleteSemaphore() function:

Err DeleteSemaphore( Item s )
The s argument is the item number of the semaphore to delete. The function returns 0 if successful or a negative error code if an error occurred. As with all items, the item number of a deleted semaphore is not reused.