index
:
libcamera/jmondi/libcamera.git
imx8mp/extensible-format
imx8mp/extensible-format-v8
imx8mp/extensible-format-v9
isi/raw_sensor
isi/raw_sensor_v2
jmondi/android/ndk/pinephonepro
jmondi/android/pinephonepro
jmondi/android/vndk
jmondi/c-abi
jmondi/device-match-generalize
jmondi/imx8mp/debix-a
jmondi/lc-compliance-cros
jmondi/pinephone
jmondi/pinephonepro
jmondi/pinephonepro-af
jmondi/rk3399/google-dru-scarlet
jmondi/rockpi/af/imx519
jmondi/rpi5-on-mainline
multicontext/rpi/v3
pfc/rkisp1-free-run
pfc/rkisp1-free-run-upstreaming
pfc/rkisp1-free-run-v2
rcar-gen4
yaml-emitter
Jacopo Mondi's clone of libcamera
git repository hosting on libcamera.org
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
test
Age
Commit message (
Expand
)
Author
2019-01-21
libcamera: camera: Handle camera objects through shared pointers
Laurent Pinchart
2019-01-21
libcamera: camera_manager: Register cameras with the camera manager
Laurent Pinchart
2019-01-17
test: v4l2_device: Add test suite and initial test
Kieran Bingham
2019-01-17
test: timer: Add a 32 bit wraparound test
Kieran Bingham
2019-01-17
test: timer: Initialise all variables
Kieran Bingham
2019-01-14
test: media_device: Add link handling test
Jacopo Mondi
2019-01-14
test: media_device: Make MediaDeviceTest a MediaDevicePrintTest
Jacopo Mondi
2019-01-14
test: media_device: Convert to foreach
Kieran Bingham
2019-01-08
test: Add event notifier test
Laurent Pinchart
2019-01-08
test: Add timer test
Laurent Pinchart
2019-01-08
test: Add signal/slot test
Laurent Pinchart
2019-01-08
test: Rename list test to list-cameras
Laurent Pinchart
2019-01-08
libcamera: camera_manager: Make the class a singleton
Laurent Pinchart
2019-01-02
test: Move include definitions to libtest
Kieran Bingham
2019-01-02
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Copyright (C) 2019, Google Inc.
*
* event-thread.cpp - Threaded event test
*/
#include <chrono>
#include <iostream>
#include <string.h>
#include <unistd.h>
#include
"libcamera/internal/event_notifier.h"
#include
"libcamera/internal/thread.h"
#include
"libcamera/internal/timer.h"
#include
"test.h"
using namespace
std
;
using namespace
libcamera
;
class
EventHandler
:
public
Object
{
public
:
EventHandler
()
:
notified_
(
false
)
{
int
ret
=
pipe
(
pipefd_
);
if
(
ret
<
0
) {
ret
=
errno
;
cout
<<
"pipe() failed: "
<<
strerror
(
ret
) <<
endl
;
}
notifier_
=
new
EventNotifier
(
pipefd_
[
0
],
EventNotifier
::
Read
,
this
);
notifier_
->
activated
.
connect
(
this
, &
EventHandler
::
readReady
);
}
~
EventHandler
()
{
delete
notifier_
;
close
(
pipefd_
[
0
]);
close
(
pipefd_
[
1
]);
}
int
notify
()
{meson: Replace tabs for spaces
Kieran Bingham
2018-11-27
include: Install include files
Kieran Bingham
2018-11-22
test: Register the initialisation test with meson
Kieran Bingham
2018-10-24
build: Provide initial meson infrastructure
Kieran Bingham