Loading ccsrc/Protocols/Pcap/pcap_offline_layer.cc +2 −2 Changes for ccsrc/Protocols/Pcap/pcap_offline_layer.cc: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -181,9 +181,9 @@ void *pcap_offline_layer::thread() { if (lh.ts.tv_sec | lh.ts.tv_usec) { long diff = timeval_diff(pkt_header->ts, lh.ts); if (diff > 0) { loggers::get_instance().log("<<< pcap_offline_layer::run: Wait %d msec", diff); // No logging here: this is the reader thread, and the TITAN logger is not thread-safe (logging from it made // the test component fail with "Casting an unbound charstring value to const char*") std::this_thread::sleep_for(std::chrono::milliseconds(diff)); loggers::get_instance().log("<<< pcap_offline_layer::run: Wait done"); } } } Loading Loading
ccsrc/Protocols/Pcap/pcap_offline_layer.cc +2 −2 Changes for ccsrc/Protocols/Pcap/pcap_offline_layer.cc: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -181,9 +181,9 @@ void *pcap_offline_layer::thread() { if (lh.ts.tv_sec | lh.ts.tv_usec) { long diff = timeval_diff(pkt_header->ts, lh.ts); if (diff > 0) { loggers::get_instance().log("<<< pcap_offline_layer::run: Wait %d msec", diff); // No logging here: this is the reader thread, and the TITAN logger is not thread-safe (logging from it made // the test component fail with "Casting an unbound charstring value to const char*") std::this_thread::sleep_for(std::chrono::milliseconds(diff)); loggers::get_instance().log("<<< pcap_offline_layer::run: Wait done"); } } } Loading