1 /* 2 * Copyright (c) 2024 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 16 #ifndef RESSCHED_EXECUTOR_INTERFACES_INNERKITS_RESSCHED_EXECUTOR_CLIENT_INCLUDE_RES_EXE_TYPE_H 17 #define RESSCHED_EXECUTOR_INTERFACES_INNERKITS_RESSCHED_EXECUTOR_CLIENT_INCLUDE_RES_EXE_TYPE_H 18 19 #include <cstdint> 20 21 namespace OHOS { 22 namespace ResourceSchedule { 23 namespace ResExeType { 24 enum : uint32_t { 25 // first resType, please add resType after 26 RES_TYPE_FIRST = 0, 27 // common resType for plugin 28 RES_TYPE_COMMON_SYNC = RES_TYPE_FIRST, 29 // thermal aware event sync 30 RES_TYPE_THERMAL_AWARE_SYNC_EVENT, 31 // socperf wirte node sync 32 EWS_TYPE_SOCPERF_EXECUTOR_SYNC_EVENT, 33 // cgroup read node sync 34 RES_TYPE_CGROUP_SYNC_EVENT, 35 // cgroup read proc task sync 36 RES_TYPE_CGROUP_PROC_TASK_SYNC_EVENT, 37 // init executor plugin manager 38 RES_TYPE_EXECUTOR_PLUGIN_INIT, 39 // last sync resType, please add sync resType before 40 RES_TYPE_SYNC_END, 41 42 // first async resType, please add async resType after 43 RES_TYPE_ASYNC_FIRST = RES_TYPE_SYNC_END, 44 // common resType for plugin 45 RES_TYPE_COMMON_ASYNC = RES_TYPE_ASYNC_FIRST, 46 // thermal aware event async 47 RES_TYPE_THERMAL_AWARE_ASYNC_EVENT, 48 // socperf wirte node async 49 EWS_TYPE_SOCPERF_EXECUTOR_ASYNC_EVENT, 50 // break socket async 51 RES_TYPE_SOCK_EXECUTOR_ASYNC_EVENT, 52 // last resType, please add resType before 53 RES_TYPE_LAST = 1000, 54 // resType for debug ipc 55 RES_TYPE_DEBUG = RES_TYPE_LAST, 56 }; 57 } // namespace ResExeType 58 } // namespace ResourceSchedule 59 } // namespace OHOS 60 61 #endif // RESSCHED_EXECUTOR_INTERFACES_INNERKITS_RESSCHED_EXECUTOR_CLIENT_INCLUDE_RES_EXE_TYPE_H 62