#include "config.h"
+#include <assert.h>
#include <stdlib.h>
#include "vm/types.h"
}
+/* list_free *******************************************************************
+
+ Free a list.
+
+*******************************************************************************/
+
+void list_free(list_t *l)
+{
+ assert(l != NULL);
+
+ FREE(l, list_t);
+}
+
+
/* list_create_dump ************************************************************
Allocates a new list on the dump memory.
}
+/* list_lock *******************************************************************
+
+ Locks the list.
+
+*******************************************************************************/
+
+void list_lock(list_t *l)
+{
+ LOCK_MONITOR_ENTER(l);
+}
+
+
+/* list_unlock *****************************************************************
+
+ Unlocks the list.
+
+*******************************************************************************/
+
+void list_unlock(list_t *l)
+{
+ LOCK_MONITOR_EXIT(l);
+}
+
+
/* list_add_first **************************************************************
Adds the element as first element.
list_t *list_create(s4 nodeoffset);
list_t *list_create_dump(s4 nodeoffset);
+void list_free(list_t *l);
+
+void list_lock(list_t *l);
+void list_unlock(list_t *l);
void list_add_first(list_t *l, void *element);
void list_add_first_unsynced(list_t *l, void *element);