sem_remove

Remove a semaphore

Description

bool sem_remove(SysvSemaphore $semaphore)

sem_remove removes the given semaphore.

After removing the semaphore, it is no longer accessible.

Parameters

semaphore

A semaphore as returned by sem_get.

Return Values

Returns true on success or false on failure.

Changelog

Version Description
8.0.0 semaphore expects a SysvSemaphore instance now; previously, a resource was expected.

See Also

  • sem_get
  • sem_release
  • sem_acquire