ec_cache_destroy

March 26, 2020 Contributors

Name

ec_cache_destroy — Purge all entries from the cache and free all memory allocated to it

Synopsis

#include "ec_cache.h"

| void **ec_cache_destroy** ( | cache); |   |

ec_cache_t * <var class="pdparam">cache</var>;

Description

Purge all entries from the cache and free all memory allocated to it.

Parameters

cache

The address of the cache. The following typedef applies to the ec_cache_t data type:

typedef struct ec_cache_head ec_cache_t;

Return Values

This function returns void.

Threading

While it is legal to call this function in any thread, it should only be called in the Scheduler thread.

See Also

ec_cache_create, ec_cache_create2, ec_cache_delref, ec_cache_find, ec_cache_insert, “ec_cache_head”, and “ec_cache_elt”.