Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
error-handling.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "concurrency.h"
4 #include "option.h"
5 #include "types.h"
6 
7 namespace librealsense
8 {
10  {
11  public:
12  polling_error_handler(unsigned int poll_intervals_ms, std::unique_ptr<option> option,
13  std::shared_ptr<notifications_processor> processor, std::unique_ptr<notification_decoder> decoder);
15 
16  void start();
17  void stop();
18 
19  private:
20  void polling(dispatcher::cancellable_timer cancellable_timer);
21 
22  unsigned int _poll_intervals_ms;
23  bool _silenced = false;
24  std::unique_ptr<option> _option;
25  active_object<> _active_object;
26  std::weak_ptr<notifications_processor> _notifications_processor;
27  std::unique_ptr<notification_decoder> _decoder;
28  };
29 
30 }
Definition: error-handling.h:9
Definition: options.h:20
Definition: concurrency.h:268
Definition: algo.h:16
Definition: concurrency.h:128
polling_error_handler(unsigned int poll_intervals_ms, std::unique_ptr< option > option, std::shared_ptr< notifications_processor > processor, std::unique_ptr< notification_decoder > decoder)