| 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>
|
|
|
|
| |
Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
|
|\
| |
| | |
Clean pr26 utility updates
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In case someone removed a fd and closed it opened a new one and added it
to the socket handler the container state of the object in map was
changed from either REMOVE/CLOSE to UNINIT.
This leads to the emplace call in the fdPollingArray vector and the fd
is maintained twice. Over the entire runtime there will be zombie fds
provided to ppoll functions which will race a POLLERR revent leading to
100% cpu load.
Also the CLOSE state is now removed because only the application is aware
if a fd has to be closed. For instance calling add/remove in a loop were
start_listenting is not running will turn to a system issue were no fds
can be provided by the operation system.
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>
|
| |
| |
| |
| |
| |
| |
| | |
It is not an error in case the requested fdpoll is not part of the
internal database. I just worth to print a warning here.
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In case plugins add new fdpoll elements and directly removing them
afterwards the state inside the structure will be changed to REMOVE.
REMOVE will lead all the time to an erase which will not work in case the
pointer is at .end() of vector or the element itself is not the correct
one. Both cases will be fixed just by checking if the fd is the same.
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>
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| | |
The duration calculation for mExpected is not working.
The playWithTimers oneshot test reported all times warnings.
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|\
| |
| | |
Sorted code style config file
|
| |
| |
| |
| |
| |
| |
| |
| | |
Applied changes proposed by @JensLorenz in e2bc7099
except this time the lines are sorted for efficient
diffing.
Signed-off-by: Gunnar Andersson <gandersson@genivi.org>
|
|/
|
|
|
|
|
|
|
| |
Sorting all lines (No changes to the settings).
This is so that subsequent changes (may also need manual sorting) can be
actually compared. It seemed on another change that Eclipse may move
things around so that it's impossible to diff.
Signed-off-by: Gunnar Andersson <gandersson@genivi.org>
|
|\
| |
| | |
Revert "Utility updates capi fixes"
|
|/ |
|
|\
| |
| | |
Utility updates capi fixes
|
| |
| |
| |
| |
| | |
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
|
|\ \
| |/
|/| |
Version and doc update
|
| |
| |
| |
| | |
Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Versioning should not strictly depend on Version Control System (e.g. git).
Best approach is to have a dedicated VERSION file exposing with format
<Major>.<Minor>.<Revision>. Target is that maintainer will manually release
the version once patches/fixes are merged e.g. to a stabilization branch.
In order to have an OEM specific meta information exposed with the version
information EXTRAVERSIONINFO can be specified by CMAKE flag.
Signed-off-by: Guerra Mattia <mguerra@de.adit-jv.com>
|
|/
|
|
| |
Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
|
|\
| |
| | |
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>
|
| |
| |
| |
| |
| |
| | |
enumerations.
Signed-off-by: Kapildev Patel <kpatel@jp.adit-jv.com>
|