summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Lorenz <jlorenz@de.adit-jv.com>2018-04-09 17:03:09 +0200
committerJens Lorenz <jlorenz@de.adit-jv.com>2018-04-09 17:04:42 +0200
commitbfeec4b5380f9269f296f6377d0cf161c25ffe89 (patch)
tree7aa863919dbc6cb5ea485dfaed02ec89e223c4ff
parent95dc06f3def8efea8a549724579688fcf835f691 (diff)
downloadaudiomanager-bfeec4b5380f9269f296f6377d0cf161c25ffe89.tar.gz
AMUtil: No check callback needed for eventfd and signalfd
Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
-rw-r--r--AudioManagerUtilities/src/CAmSocketHandler.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/AudioManagerUtilities/src/CAmSocketHandler.cpp b/AudioManagerUtilities/src/CAmSocketHandler.cpp
index c30f604..a1f82ab 100644
--- a/AudioManagerUtilities/src/CAmSocketHandler.cpp
+++ b/AudioManagerUtilities/src/CAmSocketHandler.cpp
@@ -97,9 +97,7 @@ CAmSocketHandler::CAmSocketHandler() :
//add the pipe to the poll - nothing needs to be processed here we just need the pipe to trigger the ppoll
sh_pollHandle_t handle;
mEventFd = eventfd(1, EFD_NONBLOCK | EFD_CLOEXEC);
- if (addFDPoll(mEventFd, POLLIN, NULL, actionPoll,
- [](const sh_pollHandle_t, void*) { return (false); },
- NULL, NULL, handle) != E_OK)
+ if (addFDPoll(mEventFd, POLLIN, NULL, actionPoll, NULL, NULL, NULL, handle) != E_OK)
{
mInternalCodes |= internal_codes_e::FD_ERROR;
}
@@ -356,8 +354,7 @@ am_Error_e CAmSocketHandler::listenToSignals(const std::vector<uint8_t> & listSi
};
/* We're going to add the signal fd through addFDPoll. At this point we don't have any signal listeners. */
sh_pollHandle_t handle;
- return addFDPoll(mSignalFd, POLLIN | POLLERR | POLLHUP, NULL, actionPoll,
- [](const sh_pollHandle_t, void*) { return (false); }, NULL, NULL, handle);
+ return addFDPoll(mSignalFd, POLLIN | POLLERR | POLLHUP, NULL, actionPoll, NULL, NULL, NULL, handle);
}
else
{