[libcamera-devel] [PATCH 0/2] Make log messages more thread-friendly

Laurent Pinchart laurent.pinchart at ideasonboard.com
Sat Jan 18 22:33:46 CET 2020


Hello,

In a multithread context, knowing from which thread log messages are
printed is very valuable during debugging. This series adds support for
retrieving the ID of the current thread in patch 1/2, and prints it in
the log in patch 2/2.

Laurent Pinchart (2):
  libcamera: thread: Add a method to return the ID of the current thread
  libcamera: log: Print the thread ID in the log

 src/libcamera/include/thread.h |  2 ++
 src/libcamera/log.cpp          |  4 +++-
 src/libcamera/thread.cpp       | 20 ++++++++++++++++++++
 3 files changed, 25 insertions(+), 1 deletion(-)

-- 
Regards,

Laurent Pinchart



More information about the libcamera-devel mailing list