[libcamera-devel,0/2] Make log messages more thread-friendly
mbox series

Message ID 20200118213348.16561-1-laurent.pinchart@ideasonboard.com
Headers show
Series
  • Make log messages more thread-friendly
Related show

Message

Laurent Pinchart Jan. 18, 2020, 9:33 p.m. UTC
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(-)