[Fuchsia] Ensure that GetThreadId() is cached.
On Fuchsia a syscall is required to get ID of the current thread, so
ideally it should be cached. Previously GetThreadId() was trying to
cache it using thread_local variable, but it was inlined, so the value
wasn't actually cached. Moved the function to a new .cc file to a
function that's not inlined, which allows to cache the result properly.
Bug: 1166873
Change-Id: I2e3433856b393032af2a3a53847b5f42ddfe3872
diff --git a/BUILD b/BUILD
index 57325e4..7350c41 100644
--- a/BUILD
+++ b/BUILD
@@ -750,6 +750,7 @@
"src/base/temp_file.cc",
"src/base/thread_checker.cc",
"src/base/thread_task_runner.cc",
+ "src/base/thread_utils.cc",
"src/base/time.cc",
"src/base/unix_task_runner.cc",
"src/base/utils.cc",