ec_cache_delref
Name
ec_cache_delref — Delete a reference from a cached item determined by elt in a cache
Synopsis
#include "ec_cache.h"
| void **ec_cache_delref** ( | cache, | |
| | elt); | |
Description
Decrement a reference from a cached item determined by elt in a cache. If the refcount falls to zero, then the function registered in the call to ec_cache_create2 will be invoked. The following typedef applies to this data type: typedef void (*ec_cache_elt_dtor_func)(void *value);
After calling ec_cache_delref the element and its contents must not be touched, as they may have been freed.
- cache
-
The address of the cache. The following typedef applies to the
ec_cache_tdata type:typedef struct ec_cache_head ec_cache_t; - elt
-
The address of the cache entry to delref. See the “ec_cache_elt” structure.
This function returns void.
It is legal to call this function in any thread.