1 /* 2 * Copyright (c) 2021 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 OHOS_ABILITY_RUNTIME_TASK_PRIORITY_H 17 #define OHOS_ABILITY_RUNTIME_TASK_PRIORITY_H 18 19 namespace OHOS { 20 namespace AppExecFwk { 21 enum TaskPriority { 22 /** 23 * Indicates the highest task priority. Tasks with this priority are executed before other tasks. 24 * 25 * @see #DEFAULT 26 * @see #LOW 27 * @since 1 28 */ 29 HIGH, 30 /** 31 * Indicates the default task priority. Tasks with this priority are executed after those with the {@link #HIGH} 32 * priority are complete. 33 * 34 * @see #HIGH 35 * @see #LOW 36 * @since 1 37 */ 38 DEFAULT, 39 /** 40 * Indicates the low task priority. Tasks with this priority are executed after those with the {@link #HIGH} or 41 * {@link #DEFAULT} priority are complete. 42 * 43 * @see #HIGH 44 * @see #DEFAULT 45 * @since 1 46 */ 47 LOW 48 }; 49 } // namespace AppExecFwk 50 } // namespace OHOS 51 #endif 52