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"
11 void ThreadLocalPlatform::AllocateSlot(SlotType
* slot
) {
12 slot
->Initialize(nullptr);
16 void ThreadLocalPlatform::FreeSlot(SlotType slot
) {
21 void* ThreadLocalPlatform::GetValueFromSlot(SlotType slot
) {
26 void ThreadLocalPlatform::SetValueInSlot(SlotType slot
, void* value
) {
30 } // namespace internal