| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
|
|
|
|
| |
Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
|
|
|
|
|
|
|
| |
The removeFDPoll API is extended to allow applications to close the fd
by the central worker thread.
Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch tries to follow the idea raised in PR26.
Following two patches have been reworked:
commit: cfe0e77aaf87a0590ceea42f6afa62b0c7d95e80
commit: bc33226f59910a960f62d419ba10d4ea761e3724
The biggest change applies to the internal database. Instead of having a
vector for all items which will be copied inside the worker thread the new
approach aims a central map which allows to store the sh_poll elements in
containers. By this a container is valid until it is remove from map.
The remove of items inside a map is now centralized within the worker and
only the worker is responsible to keep the ppoll list and the map in sync.
This patch also extends the unit tests to stress different timer scenarios.
Signed-off-by: Aleksandar Donchev <Aleksander.Donchev@partner.bmw.de>
Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
|
|
|
|
|
|
| |
This commit is the first commit of a rework of the CAmSochetHandler class.
Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
|
|
|
|
| |
Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
|
|
|
|
| |
Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
|
|
|
|
| |
Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
|
|
|
|
|
|
|
|
|
| |
All methods in CAPI wrapper with connectionID parameter are deprecated
because CAPI creates new filedescriptor per connection which isn't needed.
* revents flag is passed to the CommonAPI watcher instead events
* revents set to 0 in Sockethandler
Signed-off-by: Christian Linke <christian.linke@bmw.de>
|
|
|
|
| |
Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
|
| |
|
|
|
|
|
| |
Signed-off-by: Christian Linke <christian.linke@bmw.de>
Change-Id: I3c8a2b474bc8fac62c76a46545a231c718edb2a9
|
|
|
|
|
|
| |
Signed-off-by: Christian Linke <christian.linke@bmw.de>
Change-Id: I7c8a2c474bc8fac62c76a46545a231c518edb2a8
|
|
|
|
|
|
|
|
| |
runtime error if read fails.
Signed-off-by: Christian Linke <christian.linke@bmw.de>
Change-Id: I6a7a2c424bc8fac62c76a66545a231c518edb2e1
|
|
|
|
|
| |
Signed-off-by: Christian Linke <christian.linke@bmw.de>
Change-Id: I9a9d2c424bc8fac62c76a66545a531c518edb2e3
|
|
|
|
|
|
|
| |
registerTimeout, only requested revent passed from within the camsockethandler instead of all
Signed-off-by: Christian Linke <christian.linke@bmw.de>
Change-Id: I2d9d2c424ac3fac62c76a66545a531c518edb2e8
|
|
|
|
|
|
|
|
|
|
|
| |
because CommonAPI creates new filedescriptor per connection which isn't needed.
* revents flag is passed to the CommonAPI watcher instead events
* revents set to 0 in Sockethandler
Signed-off-by: Christian Linke <christian.linke@bmw.de>
Change-Id: I9d9d2c424ac9fad62c76a66545c731c518adb2e4
|
|
|
|
|
|
| |
Signed-off-by: Christian Linke <christian.linke@bmw.de>
Change-Id: I9d9d3c424ac9fad62c76a76545c731b518bdb1e2
|
|
|
|
|
|
|
|
|
|
|
| |
calls on the invalidated objects in the current iteration.
Signed-off-by: Christian Linke <christian.linke@bmw.de>
Change-Id: I9d5d3c434ac9fad62c76a76145c731b538aeb1e3
# Conflicts:
# AudioManagerUtilities/src/CAmSocketHandler.cpp
|
|
|
|
|
|
| |
Signed-off-by: Christian Linke <christian.linke@bmw.de>
Change-Id: I8c5d3c436ac9fad62c76a26145c731b538abb1e7
|
|\
| |
| | |
Cmake and dlt endless loop fix
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In case plugins remove dbus timer callbacks at runtime a race might happen
between the deletion of timer and the callback invocation.
Now the timer callback function checks if the timer is valid before
proceeding with the restart.
Signed-off-by: Kapildev Patel <kpatel@jp.adit-jv.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When copying the list of Poll fd, also the revents have to be copied. This
is very important for AM Plugins which rely on revents in order to consume
data. Without updating the revents, there's concrete risk of endless poll
and general stuck situation.
Signed-off-by: Guerra Mattia <mguerra@de.adit-jv.com>
|
|/
|
|
|
|
|
| |
If DLT is turned off, CAmDltWrapper needs linkage to pthread.
Furthermore, CAmSerializer doesn't need to #include pthread.
Signed-off-by: Guerra Mattia <mguerra@de.adit-jv.com>
|
|
|
|
|
|
|
|
|
| |
contrast to secondary signals SIGHUP, SIGTERM, SIGCHLD, which are
handled in the SocketHandler.
Signed-off-by: Christian Linke <christian.linke@bmw.de>
Change-Id: I8c5d3c436ac9fcd61c76a26145c731b427cab1e6
|
|
|
|
|
| |
Signed-off-by: Christian Linke <christian.linke@bmw.de>
Change-Id: I8d3d2b436ac9fcd61c73a28145a731f327cab1e2
|
|
|
|
|
| |
Signed-off-by: Christian Linke <christian.linke@bmw.de>
Change-Id: I8c4c2c436ac9fcd61c76a21145c731f327cab0c1
|
|
|
|
|
| |
Signed-off-by: Christian Linke <christian.linke@bmw.de>
Change-Id: I8b4c2c436ac9fbc37c76a21145c731f327cab0e4
|
|
|
|
|
|
|
| |
code cleanup and minior optimizations.
Signed-off-by: Christian Linke <christian.linke@bmw.de>
Change-Id: I8c2c2c436ac9abc37c76a12245c731f327cab0e5
|
|
|
|
| |
Signed-off-by: Christian Linke <christian.linke@bmw.de>
|
|
|
|
|
|
|
|
|
|
|
| |
Application might use libraries which are using CAmDltWrapper class.
The singleton implementation requires an instanctiateOnce() initialization
but if the application is not aware of this AudioManager utility a
nullptr exception occurs on standard instance() calls.
instance() checks now if the singleton exists and initializes
the singleton and registers a fallback application towards DLT on demand.
Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
|
|
|
|
| |
Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
|
|
|
| |
Signed-off-by: Christian Linke <christian.linke@bmw.de>
|
|
|
|
|
|
| |
new register a connection object. This allows to attach to already existing interface bindings.
Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
|
|
|
| |
Signed-off-by: Christian as GENIVI Maintainer <genivi-maint-audiomanager@genivi.org>
|
|
|
|
|
| |
small improvements of sockethandler.
Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
|
|
|
|
|
| |
Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
|
|
|
|
|
| |
specializations
Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
|
|
|
|
|
| |
fix log message
Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
|
|
|
| |
Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
|
|
|
|
| |
Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
|
| |
|
|
|
|
| |
Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* check versions when loading the libs
* introduction of the AudioManagerCore
* give control plugin as file or directory
* remove SQLITE
* either find and use gmock or build and install it
* fixed [Bug 411]
* compile flag gnu11 is now used
Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
|
| |
|
|
|
| |
Signed-off-by: Christian Linke <christian.linke@bmw.de>
|
|
|
| |
Signed-off-by: Christian Linke <christian.linke@bmw.de>
|
|
|
| |
Signed-off-by: Christian Linke <christian.linke@bmw.de>
|
|
|
|
| |
Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
|
|
|
|
|
|
| |
added logDebug
Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
|