{"id":2683,"url":"https://patchwork.libcamera.org/api/1.1/covers/2683/?format=json","web_url":"https://patchwork.libcamera.org/cover/2683/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20200118213348.16561-1-laurent.pinchart@ideasonboard.com>","date":"2020-01-18T21:33:46","name":"[libcamera-devel,0/2] Make log messages more thread-friendly","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/1.1/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/cover/2683/mbox/","series":[{"id":639,"url":"https://patchwork.libcamera.org/api/1.1/series/639/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=639","date":"2020-01-18T21:33:46","name":"Make log messages more thread-friendly","version":1,"mbox":"https://patchwork.libcamera.org/series/639/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/2683/comments/","headers":{"Return-Path":"<laurent.pinchart@ideasonboard.com>","Received":["from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 537C6607B3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 18 Jan 2020 22:34:07 +0100 (CET)","from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi\n\t[81.175.216.236])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id DA63A97A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 18 Jan 2020 22:34:06 +0100 (CET)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1579383247;\n\tbh=POF0W8NXW0zaPezmQXBVkruH6t22pay5n6ISWoXTnpM=;\n\th=From:To:Subject:Date:From;\n\tb=iunZBuzmm1ZFOQpN8kzuJ4ToB7nxby5D5uBlpM8SwIFCrBmcKoPdWAv98RXShBxG7\n\tC6IT+bGtxUEcGwNB34nvolPSxmI7BUfDL//Bxfn4fy8qd2SdKjJyFdoXd5Scp27inU\n\tpcd769zr3HZZK6hQ/kmts3LDbpQ7xmoS96AVUnx0=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Sat, 18 Jan 2020 23:33:46 +0200","Message-Id":"<20200118213348.16561-1-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.24.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 0/2] Make log messages more thread-friendly","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Sat, 18 Jan 2020 21:34:07 -0000"},"content":"Hello,\n\nIn a multithread context, knowing from which thread log messages are\nprinted is very valuable during debugging. This series adds support for\nretrieving the ID of the current thread in patch 1/2, and prints it in\nthe log in patch 2/2.\n\nLaurent Pinchart (2):\n  libcamera: thread: Add a method to return the ID of the current thread\n  libcamera: log: Print the thread ID in the log\n\n src/libcamera/include/thread.h |  2 ++\n src/libcamera/log.cpp          |  4 +++-\n src/libcamera/thread.cpp       | 20 ++++++++++++++++++++\n 3 files changed, 25 insertions(+), 1 deletion(-)"}