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"]
    "7" [label="stdbool.h" tooltip="stdbool.h"]
    "5" [label="stdlib.h" tooltip="stdlib.h"]
    "1" [label="/home/runner/work/AtomVM/AtomVM/src/libAtomVM/valueshashtable.c" tooltip="/home/runner/work/AtomVM/AtomVM/src/libAtomVM/valueshashtable.c" fillcolor="#BFBFBF"]
    "2" [label="valueshashtable.h" tooltip="valueshashtable.h"]
    "3" [label="utils.h" tooltip="utils.h"]
    "4" [label="stddef.h" tooltip="stddef.h"]
    "6" [label="smp.h" tooltip="smp.h"]
    "1" -> "2" [dir=forward tooltip="include"]
    "1" -> "3" [dir=forward tooltip="include"]
    "1" -> "5" [dir=forward tooltip="include"]
    "1" -> "6" [dir=forward tooltip="include"]
    "3" -> "4" [dir=forward tooltip="include"]
    "6" -> "7" [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