| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 // | |
| 5 // Pthread compatability routines. | |
| 6 // TODO(timsteele): This file is deprecated. Use PlatformThread. | |
| 7 | |
| 8 #ifndef CHROME_BROWSER_SYNC_UTIL_COMPAT_PTHREAD_H_ | |
| 9 #define CHROME_BROWSER_SYNC_UTIL_COMPAT_PTHREAD_H_ | |
| 10 | |
| 11 #include "base/platform_thread.h" | |
| 12 #include "build/build_config.h" | |
| 13 | |
| 14 #define ThreadId PlatformThreadId | |
| 15 | |
| 16 #ifndef OS_WIN | |
| 17 inline ThreadId GetCurrentThreadId() { | |
| 18 return PlatformThread::CurrentId(); | |
| 19 } | |
| 20 #endif // OS_WIN | |
| 21 | |
| 22 #endif // CHROME_BROWSER_SYNC_UTIL_COMPAT_PTHREAD_H_ | |
| OLD | NEW |