hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2019 Fuzhou Rockchip Electronics Co., Ltd. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
 
#include "dbus_dispatcher.h"
 
#include <signal.h>
#include <stdio.h>
 
namespace rockchip {
namespace aiserver {
 
#ifdef LOG_TAG
#undef LOG_TAG
#endif
#define LOG_TAG "dbus_dispatcher.cpp"
 
DBus::BusDispatcher DbusDispatcher::dispatcher_;
 
DbusDispatcher::DbusDispatcher(int timeout_ms) : timeout_ms_(timeout_ms) {
  DBus::_init_threading();
 
  DBus::default_dispatcher = &dispatcher_;
  new DBus::DefaultTimeout(timeout_ms_, false, &dispatcher_);
}
 
} // namespace aiserver
} // names