#include <iostream>
-
+#include <threads.h>
#include "cliffc_hashtable.h"
using namespace std;
return _val;
}
- bool equals(const shared_ptr<void> another) {
+ bool equals(const void *another) {
if (another == NULL)
return false;
- shared_ptr<IntWrapper> ptr =
- static_pointer_cast<IntWrapper>(another);
+ IntWrapper *ptr =
+ (IntWrapper*) another;
return ptr->_val == _val;
}
};
-int main(int argc, char *argv[]) {
+int user_main(int argc, char *argv[]) {
cliffc_hashtable<IntWrapper, IntWrapper> table;
IntWrapper k1(3), k2(4), v1(1), v2(2);