NVIDIA DeepStream SDK API Reference
8.0 Release
model_engine_watch_otf_trigger.hpp
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3
* SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4
*
5
* NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6
* property and proprietary rights in and to this material, related
7
* documentation and any modifications thereto. Any use, reproduction,
8
* disclosure or distribution of this material and related documentation
9
* without an express license agreement from NVIDIA CORPORATION or
10
* its affiliates is strictly prohibited.
11
*/
12
13
#ifndef MODEL_ENGINE_WATCH_OTF_TRIGGER_HPP
14
#define MODEL_ENGINE_WATCH_OTF_TRIGGER_HPP
15
16
#include <string>
17
#include <thread>
18
#include "
element.hpp
"
19
20
namespace
deepstream
{
21
22
class
NvDsModelEngineWatchOTFTrigger
{
23
public
:
24
NvDsModelEngineWatchOTFTrigger
(
Element
*infer,
const
std::string watch_file)
25
:
infer_
(infer),
watch_file_path_
(watch_file) {}
26
27
~NvDsModelEngineWatchOTFTrigger
() {
28
stop
();
29
}
30
bool
start
();
31
bool
stop
();
32
void
file_watch_thread_func
();
33
bool
stop_watch
=
false
;
34
35
int
ota_inotify_fd_
;
36
std::thread
file_watch_thread_
;
37
Element
*
infer_
;
38
std::string
watch_file_path_
;
39
bool
started
=
false
;
40
};
41
42
}
43
44
#endif
deepstream::NvDsModelEngineWatchOTFTrigger
Definition:
model_engine_watch_otf_trigger.hpp:22
deepstream::NvDsModelEngineWatchOTFTrigger::watch_file_path_
std::string watch_file_path_
Definition:
model_engine_watch_otf_trigger.hpp:38
deepstream::Element
Element class definition.
Definition:
element.hpp:49
deepstream::NvDsModelEngineWatchOTFTrigger::NvDsModelEngineWatchOTFTrigger
NvDsModelEngineWatchOTFTrigger(Element *infer, const std::string watch_file)
Definition:
model_engine_watch_otf_trigger.hpp:24
element.hpp
deepstream::NvDsModelEngineWatchOTFTrigger::stop
bool stop()
deepstream::NvDsModelEngineWatchOTFTrigger::started
bool started
Definition:
model_engine_watch_otf_trigger.hpp:39
deepstream::NvDsModelEngineWatchOTFTrigger::infer_
Element * infer_
Definition:
model_engine_watch_otf_trigger.hpp:37
deepstream::NvDsModelEngineWatchOTFTrigger::stop_watch
bool stop_watch
Definition:
model_engine_watch_otf_trigger.hpp:33
deepstream
Definition:
buffer.hpp:33
deepstream::NvDsModelEngineWatchOTFTrigger::start
bool start()
deepstream::NvDsModelEngineWatchOTFTrigger::file_watch_thread_func
void file_watch_thread_func()
deepstream::NvDsModelEngineWatchOTFTrigger::ota_inotify_fd_
int ota_inotify_fd_
Definition:
model_engine_watch_otf_trigger.hpp:35
deepstream::NvDsModelEngineWatchOTFTrigger::file_watch_thread_
std::thread file_watch_thread_
Definition:
model_engine_watch_otf_trigger.hpp:36
deepstream::NvDsModelEngineWatchOTFTrigger::~NvDsModelEngineWatchOTFTrigger
~NvDsModelEngineWatchOTFTrigger()
Definition:
model_engine_watch_otf_trigger.hpp:27
Privacy Policy
|
Manage My Privacy
|
Do Not Sell or Share My Data
|
Terms of Service
|
Accessibility
|
Corporate Policies
|
Product Security
|
Contact
© 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
NVIDIA Confidential | Subject to Change | For test and development only.
Tue Sep 9 2025 11:36:24 | PR-09318-R32