From 4256e5b631accf081eaa9a8a316715123f5f3cdb Mon Sep 17 00:00:00 2001 From: Peizhao Ou Date: Tue, 13 Jan 2015 13:21:06 -0800 Subject: [PATCH] changes --- benchmark/cliffc-hashtable/main.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/benchmark/cliffc-hashtable/main.cc b/benchmark/cliffc-hashtable/main.cc index 088c209..5c4f93c 100644 --- a/benchmark/cliffc-hashtable/main.cc +++ b/benchmark/cliffc-hashtable/main.cc @@ -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); -- 2.34.1