INtime SDK Help
DeleteRtSemaphore
INtime SDK v7 > About INtime > INtime Kernel > Semaphores > DeleteRtSemaphore

Deletes a semaphore.

BOOLEAN DeleteRtSemaphore(
    RTHANDLE hSemaphore    // handle for semaphore object
);

Parameters

hSemaphore
Handle for the semaphore to be deleted.

Return Values

TRUE
Success.
FALSE
Failure. To determine the status, call GetLastRtError.

Status

E_OK 0x0000
No exceptional conditions occurred.
E_EXIST 0x0006
One of these conditions exist:
  • You used an invalid value for hSemaphore.
  • hSemaphore represents an RT semaphore in a process being deleted.
E_TYPE 0x8002
hSemaphore is not a handle for a semaphore.
E_INVALID_ADDRESS 0x00E2
The address provided for the remote object is not a valid address.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/rtbase.h rt.h rt.lib

See Also

Semaphore system calls