error-handling.h
Go to the documentation of this file.
1 /* License: Apache 2.0. See LICENSE file in root directory. */
2 /* Copyright(c) 2019 Intel Corporation. All Rights Reserved. */
3 #pragma once
4 
5 #include "concurrency.h"
6 #include "option.h"
7 #include "types.h"
8 
9 namespace librealsense
10 {
12  {
13  public:
14  polling_error_handler(unsigned int poll_intervals_ms, std::shared_ptr<option> option,
15  std::shared_ptr<notifications_processor> processor, std::shared_ptr<notification_decoder> decoder);
17 
19 
20  unsigned int get_polling_interval() const { return _poll_intervals_ms; }
21 
22  void start( unsigned int poll_intervals_ms = 0 );
23  void stop();
24 
25  private:
26  void polling(dispatcher::cancellable_timer cancellable_timer);
27 
28  unsigned int _poll_intervals_ms;
29  bool _silenced = false;
30  std::shared_ptr<option> _option;
31  std::shared_ptr < active_object<> > _active_object;
32  std::weak_ptr<notifications_processor> _notifications_processor;
33  std::shared_ptr<notification_decoder> _decoder;
34  };
35 
36 }
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:1960
std::shared_ptr< notification_decoder > _decoder
std::weak_ptr< notifications_processor > _notifications_processor
polling_error_handler(unsigned int poll_intervals_ms, std::shared_ptr< option > option, std::shared_ptr< notifications_processor > processor, std::shared_ptr< notification_decoder > decoder)
void polling(dispatcher::cancellable_timer cancellable_timer)
void start(unsigned int poll_intervals_ms=0)
std::shared_ptr< option > _option
unsigned int get_polling_interval() const
std::shared_ptr< active_object<> > _active_object


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:14