11 const std::map<
uint8_t, std::pair< std::string, rs2_log_severity > > & error_report )
19 std::condition_variable
cv;
23 std::lock_guard< std::mutex >
lock( m );
32 for(
auto i = error_report.begin();
i != error_report.end();
i++ )
35 std::unique_lock< std::mutex >
lock( m );
39 return notification_description.compare(
i->second.first ) == 0
40 && severity ==
i->second.second;
42 REQUIRE( cv.wait_for( lock, std::chrono::seconds( 5 ), pred ) );
static const textual_icon lock
GLenum GLuint GLenum severity
void trigger_error_or_exit(const rs2::device &dev, uint8_t num)
rs2_log_severity get_severity() const
GLsizei const GLchar *const * string
std::string get_description() const
static std::condition_variable cv
void validate_errors_handling(const rs2::device &dev, const std::map< uint8_t, std::pair< std::string, rs2_log_severity > > &error_report)
REQUIRE_NOTHROW(rs2_log(RS2_LOG_SEVERITY_INFO,"Log message using rs2_log()", nullptr))
rs2_log_severity
Severity of the librealsense logger.
GeneratorWrapper< T > map(Func &&function, GeneratorWrapper< U > &&generator)