{"id":163,"url":"https://patchwork.libcamera.org/api/covers/163/?format=json","web_url":"https://patchwork.libcamera.org/cover/163/","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":"<20190107231151.23291-1-laurent.pinchart@ideasonboard.com>","date":"2019-01-07T23:11:40","name":"[libcamera-devel,v2,00/11] libcamera: Add event notification and timers","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/163/mbox/","series":[{"id":56,"url":"https://patchwork.libcamera.org/api/series/56/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=56","date":"2019-01-07T23:11:40","name":"libcamera: Add event notification and timers","version":2,"mbox":"https://patchwork.libcamera.org/series/56/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/163/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 A1EDE600CC\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue,  8 Jan 2019 00:10:47 +0100 (CET)","from avalon.bb.dnainternet.fi\n\t(dfj612ybrt5fhg77mgycy-3.rev.dnainternet.fi\n\t[IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 0BB8E530\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue,  8 Jan 2019 00:10:46 +0100 (CET)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1546902647;\n\tbh=qSyXu+58+Ks+2LdvqVD7W11kiaDOninRSW+DsdZA0K0=;\n\th=From:To:Subject:Date:From;\n\tb=Far1MYm/g5RLD0nvD8BZUQpD6o9ON2pQHn36B/2XZNMP5RM8qAVd+3B3eJcPWJBKX\n\tH4RGB8jM06Bd5oL6mOCPIcxIiHuHuFJLSvNNFZpYdf2DHKV4gZps6/WwvQiVhSfYeO\n\tWRuGV9+veFJJxwHPR1L7puEtJAL4pKMpfKsj0T8Y=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Tue,  8 Jan 2019 01:11:40 +0200","Message-Id":"<20190107231151.23291-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 00/11] libcamera: Add event\n\tnotification and timers","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":"Mon, 07 Jan 2019 23:10:47 -0000"},"content":"Hello everybody,\n\nHere's the second version of the event notification and timer support\npatch series for libcamera.\n\nThe series starts with small cleanups and changes (01/11 to 04/11), and\nthen adds a signal/slot mechanism (05/11) that serves to implement event\nnofication in the event notifier and the timer (06/11). Patch 07/11 adds\na default poll()-based implementation of the event dispatcher that is\nused by libcamera when the application doesn't provide its own\nimplementation. Patches 08/11 to 11/11 finally add corresponding test\ncases.\n\nI've incorporated (to the best of my knowledge) all the feedback I've\nreceived on v1. Please see individual patches for changelogs.\n\nLaurent Pinchart (11):\n  libcamera: log: Add a LogFatal log level\n  libcamera: log: Add an ASSERT macro\n  libcamera: log: Pad timestamp fields with zeros\n  libcamera: camera_manager: Make the class a singleton\n  libcamera: Add signal/slot communication mechanism\n  libcamera: Add event notification infrastructure\n  libcamera: Add a poll-based event dispatcher\n  test: Rename list test to list-cameras\n  test: Add signal/slot test\n  test: Add timer test\n  test: Add event notifier test\n\n Documentation/Doxyfile.in                     |   4 +-\n include/libcamera/camera_manager.h            |  15 +-\n include/libcamera/event_dispatcher.h          |  33 +++\n include/libcamera/event_notifier.h            |  42 ++++\n include/libcamera/libcamera.h                 |   2 +\n include/libcamera/meson.build                 |   4 +\n include/libcamera/signal.h                    | 154 ++++++++++++\n include/libcamera/timer.h                     |  37 +++\n src/libcamera/camera_manager.cpp              |  66 ++++-\n src/libcamera/event_dispatcher.cpp            | 103 ++++++++\n src/libcamera/event_dispatcher_poll.cpp       | 234 ++++++++++++++++++\n src/libcamera/event_notifier.cpp              | 121 +++++++++\n src/libcamera/include/event_dispatcher_poll.h |  50 ++++\n src/libcamera/include/log.h                   |  11 +\n src/libcamera/log.cpp                         |  37 ++-\n src/libcamera/meson.build                     |   6 +\n src/libcamera/signal.cpp                      |  84 +++++++\n src/libcamera/timer.cpp                       | 105 ++++++++\n test/event.cpp                                | 117 +++++++++\n test/{list.cpp => list-cameras.cpp}           |   7 +-\n test/meson.build                              |   5 +-\n test/signal.cpp                               | 159 ++++++++++++\n test/timer.cpp                                | 149 +++++++++++\n 23 files changed, 1530 insertions(+), 15 deletions(-)\n create mode 100644 include/libcamera/event_dispatcher.h\n create mode 100644 include/libcamera/event_notifier.h\n create mode 100644 include/libcamera/signal.h\n create mode 100644 include/libcamera/timer.h\n create mode 100644 src/libcamera/event_dispatcher.cpp\n create mode 100644 src/libcamera/event_dispatcher_poll.cpp\n create mode 100644 src/libcamera/event_notifier.cpp\n create mode 100644 src/libcamera/include/event_dispatcher_poll.h\n create mode 100644 src/libcamera/signal.cpp\n create mode 100644 src/libcamera/timer.cpp\n create mode 100644 test/event.cpp\n rename test/{list.cpp => list-cameras.cpp} (89%)\n create mode 100644 test/signal.cpp\n create mode 100644 test/timer.cpp"}