summaryrefslogtreecommitdiffstats
path: root/base/threading
diff options
context:
space:
mode:
Diffstat (limited to 'base/threading')
-rw-r--r--base/threading/non_thread_safe_unittest.cc2
-rw-r--r--base/threading/platform_thread_mac.mm8
-rw-r--r--base/threading/platform_thread_posix.cc4
-rw-r--r--base/threading/simple_thread.cc2
-rw-r--r--base/threading/thread_checker_unittest.cc2
-rw-r--r--base/threading/thread_local_posix.cc2
-rw-r--r--base/threading/thread_local_win.cc2
7 files changed, 11 insertions, 11 deletions
diff --git a/base/threading/non_thread_safe_unittest.cc b/base/threading/non_thread_safe_unittest.cc
index 01efe28..3236278 100644
--- a/base/threading/non_thread_safe_unittest.cc
+++ b/base/threading/non_thread_safe_unittest.cc
@@ -20,7 +20,7 @@ class NonThreadSafeClass : public NonThreadSafe {
// Verifies that it was called on the same thread as the constructor.
void DoStuff() {
- CHECK(CalledOnValidThread());
+ DCHECK(CalledOnValidThread());
}
void DetachFromThread() {
diff --git a/base/threading/platform_thread_mac.mm b/base/threading/platform_thread_mac.mm
index cff7a1f..ef807eb 100644
--- a/base/threading/platform_thread_mac.mm
+++ b/base/threading/platform_thread_mac.mm
@@ -77,7 +77,7 @@ void SetPriorityNormal(mach_port_t mach_thread_id) {
THREAD_STANDARD_POLICY_COUNT);
if (result != KERN_SUCCESS)
- VLOG(1) << "thread_policy_set() failure: " << result;
+ DVLOG(1) << "thread_policy_set() failure: " << result;
}
// Enables time-contraint policy and priority suitable for low-latency,
@@ -100,7 +100,7 @@ void SetPriorityRealtimeAudio(mach_port_t mach_thread_id) {
(thread_policy_t)&policy,
THREAD_EXTENDED_POLICY_COUNT);
if (result != KERN_SUCCESS) {
- VLOG(1) << "thread_policy_set() failure: " << result;
+ DVLOG(1) << "thread_policy_set() failure: " << result;
return;
}
@@ -112,7 +112,7 @@ void SetPriorityRealtimeAudio(mach_port_t mach_thread_id) {
(thread_policy_t)&precedence,
THREAD_PRECEDENCE_POLICY_COUNT);
if (result != KERN_SUCCESS) {
- VLOG(1) << "thread_policy_set() failure: " << result;
+ DVLOG(1) << "thread_policy_set() failure: " << result;
return;
}
@@ -156,7 +156,7 @@ void SetPriorityRealtimeAudio(mach_port_t mach_thread_id) {
(thread_policy_t)&time_constraints,
THREAD_TIME_CONSTRAINT_POLICY_COUNT);
if (result != KERN_SUCCESS)
- VLOG(1) << "thread_policy_set() failure: " << result;
+ DVLOG(1) << "thread_policy_set() failure: " << result;
return;
}
diff --git a/base/threading/platform_thread_posix.cc b/base/threading/platform_thread_posix.cc
index d1fb7bb..e6b8e64 100644
--- a/base/threading/platform_thread_posix.cc
+++ b/base/threading/platform_thread_posix.cc
@@ -186,14 +186,14 @@ void PlatformThread::SetName(const char* name) {
int err = dynamic_pthread_setname_np(pthread_self(),
shortened_name.c_str());
if (err < 0)
- LOG(ERROR) << "pthread_setname_np: " << safe_strerror(err);
+ DLOG(ERROR) << "pthread_setname_np: " << safe_strerror(err);
} else {
// Implementing this function without glibc is simple enough. (We
// don't do the name length clipping as above because it will be
// truncated by the callee (see TASK_COMM_LEN above).)
int err = prctl(PR_SET_NAME, name);
if (err < 0)
- PLOG(ERROR) << "prctl(PR_SET_NAME)";
+ DPLOG(ERROR) << "prctl(PR_SET_NAME)";
}
}
#elif defined(OS_MACOSX)
diff --git a/base/threading/simple_thread.cc b/base/threading/simple_thread.cc
index 4441477..a5dd763 100644
--- a/base/threading/simple_thread.cc
+++ b/base/threading/simple_thread.cc
@@ -29,7 +29,7 @@ SimpleThread::~SimpleThread() {
void SimpleThread::Start() {
DCHECK(!HasBeenStarted()) << "Tried to Start a thread multiple times.";
bool success = PlatformThread::Create(options_.stack_size(), this, &thread_);
- CHECK(success);
+ DCHECK(success);
event_.Wait(); // Wait for the thread to complete initialization.
}
diff --git a/base/threading/thread_checker_unittest.cc b/base/threading/thread_checker_unittest.cc
index 2808048..e1e5715 100644
--- a/base/threading/thread_checker_unittest.cc
+++ b/base/threading/thread_checker_unittest.cc
@@ -20,7 +20,7 @@ class ThreadCheckerClass : public ThreadChecker {
// Verifies that it was called on the same thread as the constructor.
void DoStuff() {
- CHECK(CalledOnValidThread());
+ DCHECK(CalledOnValidThread());
}
void DetachFromThread() {
diff --git a/base/threading/thread_local_posix.cc b/base/threading/thread_local_posix.cc
index 2071ad8..4951006 100644
--- a/base/threading/thread_local_posix.cc
+++ b/base/threading/thread_local_posix.cc
@@ -32,7 +32,7 @@ void* ThreadLocalPlatform::GetValueFromSlot(SlotType& slot) {
// static
void ThreadLocalPlatform::SetValueInSlot(SlotType& slot, void* value) {
int error = pthread_setspecific(slot, value);
- CHECK_EQ(error, 0);
+ DCHECK_EQ(error, 0);
}
} // namespace internal
diff --git a/base/threading/thread_local_win.cc b/base/threading/thread_local_win.cc
index 56d3a3a..32cceeb 100644
--- a/base/threading/thread_local_win.cc
+++ b/base/threading/thread_local_win.cc
@@ -33,7 +33,7 @@ void* ThreadLocalPlatform::GetValueFromSlot(SlotType& slot) {
// static
void ThreadLocalPlatform::SetValueInSlot(SlotType& slot, void* value) {
if (!TlsSetValue(slot, value)) {
- LOG(FATAL) << "Failed to TlsSetValue().";
+ DLOG(FATAL) << "Failed to TlsSetValue().";
}
}