Use a more common macro to get thread id
Review URL: http://webrtc-codereview.appspot.com/342004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1349 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
a2026ba4c4
commit
bccac66885
@ -52,7 +52,7 @@ TracePosix::~TracePosix()
|
||||
|
||||
WebRtc_Word32 TracePosix::AddThreadId(char* traceMessage) const {
|
||||
#ifdef __linux__
|
||||
pid_t threadId = (pid_t) syscall(SYS_gettid);
|
||||
pid_t threadId = (pid_t) syscall(__NR_gettid);
|
||||
sprintf(traceMessage, "%10d; ", threadId);
|
||||
#else
|
||||
WebRtc_UWord64 threadId = (WebRtc_UWord64)pthread_self();
|
||||
|
Loading…
x
Reference in New Issue
Block a user