Remove base/logging.h in a whole lot more places.
This commit is contained in:
parent
5eb13378c6
commit
c41f875df4
36 changed files with 136 additions and 127 deletions
|
@ -8,10 +8,13 @@
|
|||
#define TLS_SUPPORTED
|
||||
#endif
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include "base/basictypes.h"
|
||||
#include "base/logging.h"
|
||||
#include "thread/threadutil.h"
|
||||
|
||||
#include "Common/Log.h"
|
||||
|
||||
#if defined(__ANDROID__) || defined(__APPLE__) || (defined(__GLIBC__) && defined(_GNU_SOURCE))
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
@ -115,7 +118,7 @@ void setCurrentThreadName(const char* threadName) {
|
|||
void AssertCurrentThreadName(const char *threadName) {
|
||||
#ifdef TLS_SUPPORTED
|
||||
if (strcmp(curThreadName, threadName) != 0) {
|
||||
ELOG("Thread name assert failed: Expected %s, was %s", threadName, curThreadName);
|
||||
ERROR_LOG(SYSTEM, "Thread name assert failed: Expected %s, was %s", threadName, curThreadName);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue