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 #include "task_signal_impl.h"
17 #include <memory>
18 #include "macro.h"
19 
20 namespace OHOS::CJSystemapi {
21 using namespace DistributedFS::ModuleTaskSignal;
22 
TaskSignalImpl()23 TaskSignalImpl::TaskSignalImpl()
24 {
25     signalEntity = std::make_shared<TaskSignalEntity>();
26     if (signalEntity == nullptr) {
27         LOGE("Failed to create TaskSignalEntity.");
28         return;
29     }
30     signalEntity->taskSignal_ = std::make_shared<TaskSignal>();
31     if (signalEntity->taskSignal_ == nullptr) {
32         LOGE("Failed to create native task signal.");
33     }
34 }
35 
~TaskSignalEntity()36 TaskSignalEntity::~TaskSignalEntity() {}
37 
OnCancel()38 void TaskSignalEntity::OnCancel() {}
39 
40 } // namespace OHOS::CJSystemapi
41