{"id":274,"url":"https://patchwork.libcamera.org/api/covers/274/?format=json","web_url":"https://patchwork.libcamera.org/cover/274/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/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":"<20190118232617.14631-1-laurent.pinchart@ideasonboard.com>","date":"2019-01-18T23:26:13","name":"[libcamera-devel,v2,0/4] Object lifetime management","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/cover/274/mbox/","series":[{"id":94,"url":"https://patchwork.libcamera.org/api/series/94/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=94","date":"2019-01-18T23:26:13","name":"Object lifetime management","version":2,"mbox":"https://patchwork.libcamera.org/series/94/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/274/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 3B27460C78\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 19 Jan 2019 00:26:21 +0100 (CET)","from pendragon.bb.dnainternet.fi\n\t(dfj612yhrgyx302h3jwwy-3.rev.dnainternet.fi\n\t[IPv6:2001:14ba:21f5:5b00:ce28:277f:58d7:3ca4])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id B710E53E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 19 Jan 2019 00:26:20 +0100 (CET)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1547853980;\n\tbh=CHcPGmVIaagYQVX3UHq3KLb8N8jDd80Z7UupMzMphNg=;\n\th=From:To:Subject:Date:From;\n\tb=CXLVuNthaWU69CtIW6x0jo+hPyvaeAle/k+KvUgRUTmXIvpM5u5YbuYFnmFZN0gm1\n\tC20pcfwEyHroT2l8qbgO2cx2xH90CxnQei5WnSJUABK9/Q9reKTilalNr87E2q/6n/\n\tupln/yplk/7hqJ9o7OqmKhiue/JNvsl/kUzubq/8=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Sat, 19 Jan 2019 01:26:13 +0200","Message-Id":"<20190118232617.14631-1-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.19.2","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v2 0/4] Object lifetime management","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.23","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":"Fri, 18 Jan 2019 23:26:21 -0000"},"content":"Hello,\n\nThis patch series sets the foundations for object lifetime management in\nlibcamera. This is a complex topic that I expect will involve over time,\nso this is in no way considered as complete and set-in-stone code.\n\nPatch 1/4 documents the object lifetime management concept and\nassociated coding rules. Patches 2/4 then applies those rules to the\nevent dispatcher registration in CameraManager through\nstd::unique_ptr<>.\n\nThe last two patches apply the lifetime management rules to the Camera\nobjects, with patch 3/4 reworking how camera are registered to simplify\nthe code, and patch 4/4 implementing lifetime management through\nstd::shared_ptr<>.\n\nCompared to v1 I've incorporated review feedback, resulting in a nearly\ncomplete rewrite of the documentation. Please see individual patches for\ndetails.\n\nLaurent Pinchart (4):\n  Documentation: coding_style: Add object ownership rules\n  libcamera: camera_manager: Use std::unique_ptr to store event\n    dispatcher\n  libcamera: camera_manager: Register cameras with the camera manager\n  libcamera: camera: Handle camera objects through shared pointers\n\n Documentation/coding-style.rst           | 84 ++++++++++++++++++++++++\n include/libcamera/camera.h               | 15 +++--\n include/libcamera/camera_manager.h       | 11 ++--\n src/libcamera/camera.cpp                 | 46 +++++++------\n src/libcamera/camera_manager.cpp         | 80 +++++++++++-----------\n src/libcamera/include/pipeline_handler.h |  6 +-\n src/libcamera/pipeline/vimc.cpp          | 30 ++-------\n src/libcamera/pipeline_handler.cpp       | 21 ++----\n test/list-cameras.cpp                    |  5 +-\n 9 files changed, 185 insertions(+), 113 deletions(-)"}