edits
[cdsspec-compiler.git] / benchmark / cliffc-hashtable / main.cc
index 088c20984e4fc930054df24860e4bd3047a4b5e2..5c4f93c2b80d353dcbad61b22ea041ca01b7f338 100644 (file)
@@ -59,11 +59,11 @@ void threadA(void *arg) {
        int res;
        Res = table->put(k3, v3);
        res = Res == NULL ? 0 : Res->_val;
-       model_print("Put1: key_%d, val_%d, res_%d\n", k3->_val, v3->_val, res);
+       printf("Put1: key_%d, val_%d, res_%d\n", k3->_val, v3->_val, res);
 
        Res = table->get(k2);
        res = Res == NULL ? 0 : Res->_val;
-       model_print("Get2: key_%d, res_%d\n", k2->_val, res);
+       printf("Get2: key_%d, res_%d\n", k2->_val, res);
 }
 
 void threadB(void *arg) {
@@ -71,11 +71,11 @@ void threadB(void *arg) {
        int res;
        Res = table->put(k2, v2);
        res = Res == NULL ? 0 : Res->_val;
-       model_print("Put3: key_%d, val_%d, res_%d\n", k2->_val, v2->_val, res);
+       printf("Put3: key_%d, val_%d, res_%d\n", k2->_val, v2->_val, res);
 
        Res = table->get(k3);
        res = Res == NULL ? 0 : Res->_val;
-       model_print("Get4: key_%d, res_%d\n", k3->_val, res);
+       printf("Get4: key_%d, res_%d\n", k3->_val, res);
 }
 
 void threadC(void *arg) {
@@ -99,7 +99,7 @@ int user_main(int argc, char *argv[]) {
 
        thrd_create(&t1, threadA, NULL);
        thrd_create(&t2, threadB, NULL);
-       thrd_create(&t3, threadB, NULL);
+       thrd_create(&t3, threadC, NULL);
        thrd_join(t1);
        thrd_join(t2);
        thrd_join(t3);