summaryrefslogtreecommitdiff
path: root/utils/LocIpc.cpp
AgeCommit message (Collapse)Author
2019-04-08LocIpc derefs nullptr if stopping blocking listenerKevin Tang
LocIpcRunnable is created only for nonBlocking listeners. But stopListening would use LocIpcRunnable not knowing if this is a blocking or nonblocking listener. LocIpcRunnable is no longer a shared resource between the two threads. We use a copy of string to keep the needed socket name. Change-Id: Ib5c57a89f630807d6d03f3fbc698a56b9ffddf4d CRs-Fixed: 2431397
2019-01-17LocIpc could be using data member from a deleted objKevin Tang
startListeningBlocking is meant to be called under a reader thread, which is the case if startListeningNonBlocking calls it. A LocIpc client may delete the LocIpc obj, which would trigger sending an ABORT msg to the reader thread before it is subsequently deleted, in which case, it is possible that when the reader thread comes around to process the ABORT msg, referencing the data members of the possibly stale obj would cause unpredictable behaviors. Change-Id: I441af85c04d92b6fff695c020e3e0b4bd5e90409 CRs-Fixed: 2380093
2018-10-26Add socket name in error log messageKatz Yamada
Change-Id: I229ce4c5bfa54df26ff00d68377dfc91cf11f5f0 CRs-Fixed: 2338533
2018-05-15fix: LocIpc client app unable to exitKatz Yamada
LocIpc client apps such as garden app is unable to delete LocIpc object since its socket listening thread cannot be closed while it is waiting for data and cannot be closed. Fixed to close it by sending an abort message. CRs-Fixed: 2213212 Change-Id: I95f26862e9faf7bd75a2f447421ba4ab7220576e
2018-01-16LE clean upKevin Tang
separated utils, core, ds and loc-api-v02 from loc-hal into their own independent packages; simplified loc-pla; moved pla to the root of project; removed loc-stub. Change-Id: I373f02f9306646addf55ae90d71c4ba8e3741d09 CRs-Fixed: 2172544
2018-01-15LocIpc: enhance startListeningNoBlocking with ready callbackKevin Tang
For startListeningNoBlocking, for callers that need to know when the socket is actually being created and ready to receive message, this change allows callback to be invoked when socket is ready. Change-Id: Ie7c6eb1a3966371d84fc98109f07805ac7d4e3a1 CRs-fixed: 2169568
2017-12-18Location Utils - LocIpc class enhancementKatz Yamada
Add LocIpcSender class and add an overloaded send method in LocIpc class that takes binary data block. Change-Id: I102f23fe8bf378c3bed5cac0086aa9773c62727b CRs-Fixed: 2144883
2017-10-05add HAL socketRuifeng Xu
this patch contains the following changes: 1. added header and implemenation files of socket util apis in libgps.utils; 2. updated XtraSystemStatusObserver to use the new apis; 3. added HAL socket and new thread to listen to it. Change-Id: If1f6b4b4d6ea2d03640f68e96f0286300404f42b CRs-fixed: 2108635