Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[hybrisadaptor] Use pthreads for hybris reader
An attempt is made to start/stop android sensor hal event reader during runtime based on whether at least one sensor is activated via hal or not - this which is a bit useless to start with (the thread would just block while all sensors are deactivated), the stopping does not actually work - which causes segfault during cleanup if orderly exit is attempted. Use posix thread API instead of QThread as it gives more fine grained control over asynchronous cancellation and posix signal blocking. Start thread on sensord startup, cancel it when sensord is exiting. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
2 changed files
with
91 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters