Cleanup setting of 'sysroot' in common.gypi
[chromium-blink-merge.git] / base / threading / thread_local_android.cc
blob813dd78b5ec511fa3ff6b614f2f25a95605c03cc
1 // Copyright 2014 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.
5 #include "base/threading/thread_local.h"
7 namespace base {
8 namespace internal {
10 // static
11 void ThreadLocalPlatform::AllocateSlot(SlotType* slot) {
12 slot->Initialize(nullptr);
15 // static
16 void ThreadLocalPlatform::FreeSlot(SlotType slot) {
17 slot.Free();
20 // static
21 void* ThreadLocalPlatform::GetValueFromSlot(SlotType slot) {
22 return slot.Get();
25 // static
26 void ThreadLocalPlatform::SetValueInSlot(SlotType slot, void* value) {
27 slot.Set(value);
30 } // namespace internal
31 } // namespace base