simplified hashtable
[cdsspec-compiler.git] / benchmark / cliffc-hashtable / main.cc
index 86eecb72aa4c5646071781f4ed75135d4c5a7091..6c75aff28849d0e77d3f77163e45153319c39a43 100644 (file)
@@ -1,5 +1,5 @@
 #include <iostream>
-
+#include <threads.h>
 #include "cliffc_hashtable.h"
 
 using namespace std;
@@ -36,16 +36,16 @@ class IntWrapper {
                        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);