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 #ifndef QUEUE_ATTR_PRIVATE_H
16 #define QUEUE_ATTR_PRIVATE_H
17 #include <string>
18 #include "qos.h"
19 
20 namespace ffrt {
21 class queue_attr_private {
22 public:
queue_attr_private()23     queue_attr_private()
24         : qos_(qos_default)
25     {
26     }
27 
queue_attr_private(const queue_attr attr)28     explicit queue_attr_private(const queue_attr attr)
29         : qos_(attr.qos())
30     {
31     }
32 
33     int qos_;
34     uint64_t timeout_ = 0;
35     int maxConcurrency_ = 1;
36     ffrt_function_header_t* timeoutCb_ = nullptr;
37 };
38 }
39 #endif