Convert an RTC_DCHECK to logging an error in debug builds.
Removing the check as they were causing some tests to fail. Bug: none Change-Id: I42878d93a3239b18e3807a77bffc597794b65bf1 TBR: ossu@webrtc.org Reviewed-on: https://webrtc-review.googlesource.com/29300 Commit-Queue: Tommi <tommi@webrtc.org> Reviewed-by: Tommi <tommi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#21055}
This commit is contained in:
parent
e9eb9d0ea7
commit
6f314bbbb9
@ -65,8 +65,12 @@ Thread *ThreadManager::CurrentThread() {
|
||||
return static_cast<Thread *>(pthread_getspecific(key_));
|
||||
}
|
||||
|
||||
void ThreadManager::SetCurrentThread(Thread *thread) {
|
||||
RTC_DCHECK(!CurrentThread() || !thread);
|
||||
void ThreadManager::SetCurrentThread(Thread* thread) {
|
||||
#if RTC_DLOG_IS_ON
|
||||
if (CurrentThread() && thread) {
|
||||
RTC_DLOG(LS_ERROR) << "SetCurrentThread: Overwriting an existing value?";
|
||||
}
|
||||
#endif // RTC_DLOG_IS_ON
|
||||
pthread_setspecific(key_, thread);
|
||||
}
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user