This commit was manufactured by cvs2svn to create tag 'buildscript'.
[IRC.git] / Robust / src / Runtime / DSTM / interface / mlookup.h
diff --git a/Robust/src/Runtime/DSTM/interface/mlookup.h b/Robust/src/Runtime/DSTM/interface/mlookup.h
deleted file mode 100644 (file)
index f3360d4..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#ifndef _MLOOKUP_H_
-#define _MLOOKUP_H_
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <pthread.h>
-
-#define LOADFACTOR 0.5
-#define HASH_SIZE 100
-
-typedef struct mhashlistnode {
-  unsigned int key;
-  void *val;       //this can be cast to another type or used to point to a larger structure
-  struct mhashlistnode *next;
-} mhashlistnode_t;
-
-typedef struct mhashtable {
-  mhashlistnode_t *table;       // points to beginning of hash table
-  unsigned int size;
-  unsigned int numelements;
-  float loadfactor;
-  pthread_mutex_t locktable;
-} mhashtable_t;
-
-unsigned int mhashCreate(unsigned int size, float loadfactor);
-unsigned int mhashFunction(unsigned int key);
-unsigned mhashInsert(unsigned int key, void *val);
-void *mhashSearch(unsigned int key); //returns val, NULL if not found
-unsigned int mhashRemove(unsigned int key); //returns -1 if not found
-unsigned int mhashResize(unsigned int newsize);
-unsigned int *mhashGetKeys(unsigned int *numKeys);
-void mhashPrint();
-
-#endif
-