From: David Reiss Date: Mon, 4 Feb 2008 19:23:57 +0000 (+0000) Subject: Thrift: Fix a bug in a test program. X-Git-Tag: 0.2.0~1016 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=46379900138403d9012cc504d9143d971920ec91;p=common%2Fthrift.git Thrift: Fix a bug in a test program. Summary: This didn't get updated when the class was renamed. Reviewed By: mcslee Test Plan: Trust Chad Walters. Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665456 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/cpp/src/main.cpp b/test/cpp/src/main.cpp index 30b90c50..160ca8ff 100644 --- a/test/cpp/src/main.cpp +++ b/test/cpp/src/main.cpp @@ -57,7 +57,7 @@ class Server : public ServiceIf { Server() {} void count(const char* method) { - MutexMonitor m(lock_); + Guard m(lock_); int ct = counts_[method]; counts_[method] = ++ct; } @@ -68,7 +68,7 @@ class Server : public ServiceIf { } count_map getCount() { - MutexMonitor m(lock_); + Guard m(lock_); return counts_; }