Add a GetTid() implementation for Windows

llvm-svn: 177927
This commit is contained in:
Timur Iskhodzhanov 2013-03-25 22:04:29 +00:00
parent fe736e889e
commit 2dee3dd61c
1 changed files with 7 additions and 1 deletions

View File

@ -45,10 +45,16 @@ int GetPid() {
return GetProcessId(GetCurrentProcess());
}
uptr GetThreadSelf() {
// In contrast to POSIX, on Windows GetCurrentThreadId()
// returns a system-unique identifier.
uptr GetTid() {
return GetCurrentThreadId();
}
uptr GetThreadSelf() {
return GetTid();
}
void GetThreadStackTopAndBottom(bool at_initialization, uptr *stack_top,
uptr *stack_bottom) {
CHECK(stack_top);