a0DisposeSemaphore()

Disposes a semaphore.


Syntax

a0tError a0DisposeSemaphore(
a0tSemaphore *semaphore );

Arguments

Namerd/wrDescription
semaphore write Semaphore descriptor to dispose.

Description

This routine disposes the structures allocated to a semaphore and empties its descriptor. The semaphore can no longer be used after this call.


Return Values

If an error condition occurs, it returns the error code, otherwise it returns A0ErrOk. Possible values are as follows:
Error CodeDescription
A0Err...Some error occurred.
A0ErrOkSuccessful completion.

See Also

a0NewSemaphore() a0PSemaphore() a0VSemaphore() a0TryPSemaphore()