valueshashtable.c

Include dependency graph for valueshashtable.c:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "8" [label="stdbool.h" tooltip="stdbool.h"] "3" [label="utils.h" tooltip="utils.h"] "6" [label="stdlib.h" tooltip="stdlib.h"] "1" [label="/__w/AtomVM/AtomVM/src/libAtomVM/valueshashtable.c" tooltip="/__w/AtomVM/AtomVM/src/libAtomVM/valueshashtable.c" fillcolor="#BFBFBF"] "2" [label="valueshashtable.h" tooltip="valueshashtable.h"] "4" [label="stddef.h" tooltip="stddef.h"] "7" [label="smp.h" tooltip="smp.h"] "5" [label="stdio.h" tooltip="stdio.h"] "3" -> "4" [dir=forward tooltip="include"] "3" -> "5" [dir=forward tooltip="include"] "3" -> "6" [dir=forward tooltip="include"] "1" -> "2" [dir=forward tooltip="include"] "1" -> "3" [dir=forward tooltip="include"] "1" -> "6" [dir=forward tooltip="include"] "1" -> "7" [dir=forward tooltip="include"] "7" -> "8" [dir=forward tooltip="include"] }

Defines

SMP_RDLOCK(htable) smp_rwlock_rdlock(htable->lock)
SMP_WRLOCK(htable) smp_rwlock_wrlock(htable->lock)
SMP_UNLOCK(htable) smp_rwlock_unlock(htable->lock)
DEFAULT_SIZE 8

Functions

struct ValuesHashTable *valueshashtable_new()
int valueshashtable_insert(struct ValuesHashTable *hash_table, unsigned long key, unsigned long value)
unsigned long valueshashtable_get_value(const struct ValuesHashTable *hash_table, unsigned long key, unsigned long default_value)
int valueshashtable_has_key(const struct ValuesHashTable *hash_table, unsigned long key)
struct HNode