summaryrefslogtreecommitdiffstats
path: root/remoting
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-01 23:16:20 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-01 23:16:20 +0000
commitbc581a6829fe49e43f4869075781d6dc94843f09 (patch)
treea94363488dadff28fe2c03f3a169b6ad2eeb02e8 /remoting
parent10f33b1bd6c6adb6306759a45bf3a5c18221d878 (diff)
downloadchromium_src-bc581a6829fe49e43f4869075781d6dc94843f09.zip
chromium_src-bc581a6829fe49e43f4869075781d6dc94843f09.tar.gz
chromium_src-bc581a6829fe49e43f4869075781d6dc94843f09.tar.bz2
Move base/lock and base/condition_variable to base/synchronization/
I kept a base/lock.h in place with a using statement to avoid updating all callers in one CL. TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/6018013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70363 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r--remoting/base/tracer.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/remoting/base/tracer.cc b/remoting/base/tracer.cc
index 0126e1f..25ed244 100644
--- a/remoting/base/tracer.cc
+++ b/remoting/base/tracer.cc
@@ -7,12 +7,12 @@
#include <list>
#include "base/basictypes.h"
-#include "base/condition_variable.h"
#include "base/lazy_instance.h"
#include "base/message_loop.h"
#include "base/rand_util.h"
#include "base/ref_counted.h"
#include "base/stl_util-inl.h"
+#include "base/synchronization/condition_variable.h"
#include "base/threading/thread.h"
#include "base/threading/platform_thread.h"
#include "base/threading/thread_local.h"
@@ -36,7 +36,7 @@ class OutputLogger {
void OutputTrace(TraceBuffer* buffer) {
scoped_ptr<TraceBuffer> buffer_ref_(buffer);
- AutoLock l(lock_);
+ base::AutoLock l(lock_);
// Drop messages if we're overwhelming the logger.
if (buffers_.size() < 10) {
@@ -71,7 +71,7 @@ class OutputLogger {
while(!stopped_) {
TraceBuffer* buffer = NULL;
{
- AutoLock l(lock_);
+ base::AutoLock l(lock_);
if (buffers_.size() == 0) {
wake_.Wait();
}
@@ -94,7 +94,7 @@ class OutputLogger {
~OutputLogger() {
{
- AutoLock l(lock_);
+ base::AutoLock l(lock_);
stopped_ = true;
wake_.Signal();
}
@@ -103,10 +103,10 @@ class OutputLogger {
STLDeleteElements(&buffers_);
}
- Lock lock_;
+ base::Lock lock_;
base::Thread thread_;
bool stopped_;
- ConditionVariable wake_;
+ base::ConditionVariable wake_;
std::list<TraceBuffer*> buffers_;
};
@@ -125,7 +125,7 @@ Tracer::Tracer(const std::string& name, double sample_percent) {
}
void Tracer::PrintString(const std::string& s) {
- AutoLock l(lock_);
+ base::AutoLock l(lock_);
if (!buffer_.get()) {
return;
}
@@ -140,7 +140,7 @@ void Tracer::PrintString(const std::string& s) {
}
Tracer::~Tracer() {
- AutoLock l(lock_);
+ base::AutoLock l(lock_);
if (buffer_.get()) {
g_output_logger.Get().OutputTrace(buffer_.release());