summaryrefslogtreecommitdiffstats
path: root/04_exercise/slotmap.h
diff options
context:
space:
mode:
Diffstat (limited to '04_exercise/slotmap.h')
-rw-r--r--04_exercise/slotmap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/04_exercise/slotmap.h b/04_exercise/slotmap.h
index d4044d4..aa1a47f 100644
--- a/04_exercise/slotmap.h
+++ b/04_exercise/slotmap.h
@@ -16,14 +16,14 @@ typedef struct smNode {
typedef struct smHeader {
smEntry *slab;
size_t size;
+ atomic_int count;
} smHeader;
typedef bool (*SearchFunction)(void const *);
smHeader smInit(smEntry * slab, size_t size);
-int smInsert(smHeader const * header, void * value);
-void smDelete(smEntry * node);
-void smDeleteValue(smHeader const * header, void * value);
+int smInsert(smHeader * header, void * value);
+void smDeleteValue(smHeader * header, void * value);
/**
* Returns a node whose value is accepted by the SearchFunction
* @param header The header of the slotmap to be searched