• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 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 BASE_EVENTHANDLER_INTERFACES_INNER_API_EVENT_RUNNER_H
17 #define BASE_EVENTHANDLER_INTERFACES_INNER_API_EVENT_RUNNER_H
18 
19 #include "event_queue.h"
20 
21 namespace OHOS {
22 namespace AppExecFwk {
23 class EventRunner final {
24 public:
EventRunner()25     EventRunner() {};
~EventRunner()26     virtual ~EventRunner() {};
27     static std::shared_ptr<EventRunner> Create(bool inNewThread = true)
28     {
29         return nullptr;
30     }
Create(const std::string & threadName)31     static std::shared_ptr<EventRunner> Create(const std::string &threadName)
32     {
33         return nullptr;
34     }
Create(const char * threadName)35     static inline std::shared_ptr<EventRunner> Create(const char *threadName)
36     {
37         return nullptr;
38     }
39 
GetMainEventRunner()40     static std::shared_ptr<EventRunner> GetMainEventRunner()
41     {
42         return nullptr;
43     }
44 
GetThreadId()45     uint64_t GetThreadId()
46     {
47         return 0;
48     }
49 
50     explicit EventRunner(bool deposit);
51 
52     friend class EventHandler;
53 };
54 }  // namespace AppExecFwk
55 }  // namespace OHOS
56 
57 #endif  // #ifndef BASE_EVENTHANDLER_INTERFACES_INNER_API_EVENT_RUNNER_H
58