Free a previously obtained handle to an entity
#include <ha/ham.h> int ham_entity_handle_free( ham_entity_t *ehdl );
libham
The ham_entity_handle_free() function frees a handle associated with an entity (ehdl) and reclaims all storage associated with the given handle.
The handle (ehdl) must be obtained from ham_entity_handle(), ham_attach(), or ham_attach_self(). Once a handle is freed, it is no longer available to refer to any condition. The ham_entity_handle_free() call frees storage allocated for the handle but does not remove the condition itself, which is in the HAM.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
The ham_entity_handle_free() function frees storage related only to the handle in the client — it doesn't remove the corresponding entity.
ham_action_handle_free(), ham_condition(), ham_condition_handle(), ham_entity_handle_free()