proxygen
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
GlobalThreadPoolList.h
Go to the documentation of this file.
1
/*
2
* Copyright 2017-present Facebook, Inc.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#pragma once
18
19
#include <memory>
20
#include <string>
21
#include <vector>
22
23
#include <
folly/Indestructible.h
>
24
#include <
folly/Synchronized.h
>
25
#include <
folly/ThreadLocal.h
>
26
27
namespace
folly
{
28
41
class
ThreadPoolListHook
{
42
public
:
46
explicit
ThreadPoolListHook
(
std::string
name
);
47
~ThreadPoolListHook
();
48
52
void
registerThread
();
53
54
ThreadPoolListHook
(
const
ThreadPoolListHook
& other) =
delete
;
55
ThreadPoolListHook
&
operator=
(
const
ThreadPoolListHook
&) =
delete
;
56
57
private
:
58
ThreadPoolListHook
();
59
};
60
61
}
// namespace folly
folly::ThreadPoolListHook::ThreadPoolListHook
ThreadPoolListHook()
Synchronized.h
folly::ThreadPoolListHook::~ThreadPoolListHook
~ThreadPoolListHook()
Definition:
GlobalThreadPoolList.cpp:209
folly
—— Concurrent Priority Queue Implementation ——
Definition:
AtomicBitSet.h:29
name
const char * name
Definition:
http_parser.c:437
folly::ThreadPoolListHook::operator=
ThreadPoolListHook & operator=(const ThreadPoolListHook &)=delete
ThreadLocal.h
Indestructible.h
folly::ThreadPoolListHook
Definition:
GlobalThreadPoolList.h:41
string
const char * string
Definition:
Conv.cpp:212
folly::ThreadPoolListHook::registerThread
void registerThread()
Definition:
GlobalThreadPoolList.cpp:213
proxygen
folly
folly
executors
GlobalThreadPoolList.h
Generated by
1.8.11