@@ -267,7 +267,7 @@ class Pipeline
267267 */
268268 virtual ~Pipeline ()
269269 {
270- LOG_DEBUG (" Destructing pipeline" );
270+ URCL_LOG_DEBUG (" Destructing pipeline" );
271271 stop ();
272272 }
273273
@@ -302,7 +302,7 @@ class Pipeline
302302 if (!running_)
303303 return ;
304304
305- LOG_DEBUG (" Stopping pipeline! <%s>" , name_.c_str ());
305+ URCL_LOG_DEBUG (" Stopping pipeline! <%s>" , name_.c_str ());
306306
307307 running_ = false ;
308308
@@ -342,7 +342,7 @@ class Pipeline
342342
343343 void runProducer ()
344344 {
345- LOG_DEBUG (" Starting up producer" );
345+ URCL_LOG_DEBUG (" Starting up producer" );
346346 std::ifstream realtime_file (" /sys/kernel/realtime" , std::ios::in);
347347 bool has_realtime;
348348 realtime_file >> has_realtime;
@@ -363,7 +363,7 @@ class Pipeline
363363 int ret = pthread_setschedparam (this_thread, SCHED_FIFO, ¶ms);
364364 if (ret != 0 )
365365 {
366- LOG_ERROR (" Unsuccessful in setting producer thread realtime priority. Error code: %d" , ret);
366+ URCL_LOG_ERROR (" Unsuccessful in setting producer thread realtime priority. Error code: %d" , ret);
367367 }
368368 // Now verify the change in thread priority
369369 int policy = 0 ;
@@ -376,24 +376,24 @@ class Pipeline
376376 // Check the correct policy was applied
377377 if (policy != SCHED_FIFO)
378378 {
379- LOG_ERROR (" Producer thread: Scheduling is NOT SCHED_FIFO!" );
379+ URCL_LOG_ERROR (" Producer thread: Scheduling is NOT SCHED_FIFO!" );
380380 }
381381 else
382382 {
383- LOG_INFO (" Producer thread: SCHED_FIFO OK" );
383+ URCL_LOG_INFO (" Producer thread: SCHED_FIFO OK" );
384384 }
385385
386386 // Print thread scheduling priority
387- LOG_INFO (" Thread priority is %d" , params.sched_priority );
387+ URCL_LOG_INFO (" Thread priority is %d" , params.sched_priority );
388388 }
389389 else
390390 {
391- LOG_ERROR (" Could not get maximum thread priority for producer thread" );
391+ URCL_LOG_ERROR (" Could not get maximum thread priority for producer thread" );
392392 }
393393 }
394394 else
395395 {
396- LOG_WARN (" No realtime capabilities found. Consider using a realtime system for better performance" );
396+ URCL_LOG_WARN (" No realtime capabilities found. Consider using a realtime system for better performance" );
397397 }
398398 std::vector<std::unique_ptr<T>> products;
399399 while (running_)
@@ -409,13 +409,13 @@ class Pipeline
409409 {
410410 if (!queue_.tryEnqueue (std::move (p)))
411411 {
412- LOG_ERROR (" Pipeline producer overflowed! <%s>" , name_.c_str ());
412+ URCL_LOG_ERROR (" Pipeline producer overflowed! <%s>" , name_.c_str ());
413413 }
414414 }
415415
416416 products.clear ();
417417 }
418- LOG_DEBUG (" Pipeline producer ended! <%s>" , name_.c_str ());
418+ URCL_LOG_DEBUG (" Pipeline producer ended! <%s>" , name_.c_str ());
419419 notifier_.stopped (name_);
420420 }
421421
@@ -442,7 +442,7 @@ class Pipeline
442442 }
443443 }
444444 consumer_->stopConsumer ();
445- LOG_DEBUG (" Pipeline consumer ended! <%s>" , name_.c_str ());
445+ URCL_LOG_DEBUG (" Pipeline consumer ended! <%s>" , name_.c_str ());
446446 notifier_.stopped (name_);
447447 }
448448};
0 commit comments