Switch socket manager notification from pipe to eventfd 23/277723/2
authorKonrad Lipinski <k.lipinski2@samsung.com>
Tue, 12 Jul 2022 09:49:53 +0000 (11:49 +0200)
committerKonrad Lipinski <k.lipinski2@samsung.com>
Tue, 12 Jul 2022 11:28:55 +0000 (13:28 +0200)
commitd7678d368cf2653eb29e9b54cca97d9574ea4797
treed86e202fac8aa54ee9af865ad4899b437f038817
parentf80c8c603657856b1025078c9ea80377f8350a1f
Switch socket manager notification from pipe to eventfd

* use eventfd for a more efficient wakeup mechanism
* handle it directly in the manager thread to reduce thrashing
* drop the now useless DummyService and SIGPIPE-related code
* check m_working in the main loop only if eventfd is ready for reading

Change-Id: I090d90a50f3c789445dd6d0daa637abf0d189348
src/server/main/include/socket-manager.h
src/server/main/socket-manager.cpp