-
-#ifdef NORMAL
-int main(int argc, char *argv[]) {
- table = new cliffc_hashtable<int, int, HashInt, EqualsToInt, EqualsToInt>();
- k1 = new int(3);
- k2 = new int(4);
- v1 = new int(1);
- v2 = new int(2);
+int user_main(int argc, char *argv[]) {
+ thrd_t t1, t2;
+ table = new cliffc_hashtable<IntWrapper, IntWrapper>(32);
+ k1 = new IntWrapper(3);
+ k2 = new IntWrapper(5);
+ k3 = new IntWrapper(11);
+ k4 = new IntWrapper(7);
+ k5 = new IntWrapper(13);
+
+ v0 = new IntWrapper(2048);
+ v1 = new IntWrapper(1024);
+ v2 = new IntWrapper(47);
+ v3 = new IntWrapper(73);
+ v4 = new IntWrapper(81);
+ v5 = new IntWrapper(99);
+
+ thrd_create(&t1, threadA, NULL);
+ thrd_create(&t2, threadB, NULL);
+ thrd_join(t1);
+ thrd_join(t2);