1 /*
2  * Copyright (c) 2023 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #ifndef __NAME_MANAGER_H__
16 #define __NAME_MANAGER_H__
17 
18 namespace ffrt {
19 #ifdef OHOS_STANDARD_SYSTEM
20 static const char* CPU_MONITOR_NAME = "OS_FFRT_Monitor";
21 static const char* WORKER_THREAD_NAME_PREFIX = "OS_FFRT_";
22 static const char* WORKER_THREAD_SYMBOL = "_";
23 static const char* DELAYED_WORKER_NAME = "OS_FFRT_Delay";
24 static const char* IO_POLLER_NAME = "OS_FFRT_IO";
25 #else
26 static const char* CPU_MONITOR_NAME = "ffrt_moniotor";
27 static const char* WORKER_THREAD_NAME_PREFIX = "ffrtwk/CPU-";
28 static const char* WORKER_THREAD_SYMBOL = "-";
29 static const char* DELAYED_WORKER_NAME = "delayed_worker";
30 static const char* IO_POLLER_NAME = "ffrt_io";
31 #endif
32 } // namespace ffrt
33 #endif // __NAME_MANAGER_H__
34