Skip to content

Commit

Permalink
Adapt to operation logger.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Lippautz <[email protected]>
  • Loading branch information
mlippautz committed Mar 20, 2013
1 parent 19994d3 commit 338dd6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/benchmark/prodcon/prodcon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ void ProdConBench::producer(void) {
// support it.
for (uint64_t i = 1; i <= FLAGS_operations; i++) {
item = thread_id * FLAGS_operations + i;
scal::StdOperationLogger::get().invoke(OP_LOG_ENQUEUE);
scal::StdOperationLogger::get().invoke(scal::LogType::kEnqueue);
if (!ds->put(item)) {
// We should always be able to insert an item.
fprintf(stderr, "%s: error: put operation failed.\n", __func__);
Expand All @@ -149,7 +149,7 @@ void ProdConBench::consumer(void) {
uint64_t ret;
bool ok;
while (j < operations) {
scal::StdOperationLogger::get().invoke(OP_LOG_DEQUEUE);
scal::StdOperationLogger::get().invoke(scal::LogType::kDequeue);
ok = ds->get(&ret);
scal::StdOperationLogger::get().response(ok, ret);
calculate_pi(FLAGS_c);
Expand Down

0 comments on commit 338dd6c

Please sign in to comment.