summaryrefslogtreecommitdiff
path: root/utils/MsgTask.cpp
AgeCommit message (Collapse)Author
2020-09-09gps.utils changesKevin Tang
* Replaced the use of pthread in the implementation of LocThread with std::thread. * Removed the support of joinable thread from LocThread API, as it is never needed. * MsgTask no longer derives from LocRunnable, so that it can be directly deleted by ownerer. * Removed tCreator from LocThread::start() as well as LocContext::getLocContext(). * Placed utils classes under loc_utils namespace. Change-Id: Ia6b29debbf92c48aa643574b1d3789da686f5c73 CRs-Fixed: 2770806
2020-04-28Merging incomplete changes from location.lnx.4.0Saurabh Srivastava
location.lnx.4.0 comparision tip: 0907ae1 GPS HAL: configure body-to-sensor mount paramters Change: If6fe2bc601eec0bb47b4f748de583cf2c2cffe6b Robust location: include version as part of the retrieved config Change: Ie6f5fc430eb5f4f7575d95a60c53c5a2f8d4f68b CRs: 2642946 fix sv id mismatch issues Change: I7de3f8e3077dd24fb762f08e08f804c3ea9ecda4 CRs: 2554984 GPS HAL: support configure/read of min GPS week used by GPS engine Change: I53e7ddfb82e28c52baebd505ac163cc10758c415 CRs: 2621601 HAL : Location bringup for MDM9607.LE.2.1.3 Change: Id5e3030ff3b20106d74bd4e9bec5f3cd1277ba99 CRs: 2632300 Device doesn't go to sleep mode Change: I7d9093a49c969d12548217ff55bf53cb3ea167fa CRs: 2633337 LocAPIV02: add default gnss signal mask Change: Ib3765a38d124e5a012f181efc43cada955b04405 CRs: 2645187 GnssAdapter report DGnss Data usable to CDFW Change: Id92ad211b91eda98e6572a083092d7a777f3fa9b CRs: 2638924 Modification in loc-core and location-api for EAP compilation Change: Ied3a988d635c7750acdf2b6057c6d1cd6d188615 CRs: 2612482 Revert "GPS HAL support shipping out sv poly to location api client" Change: I62a3ecbe96d35da84225e4e67d5450ad752fdc6f CRs: 2638755 LocIpc improvments Change: I2dce90480941a657179a1a3a431936d741bfa76a CRs: 2627022 CRs-Fixed: 2673238 Change-Id: Ib4d0bde5423954029fe4b1c89610ed7beeabf2ee
2020-04-16Merge 'location.lnx.4.0' into 'location.lnx.6.0'Srivastava, Saurabh
CRs-Fixed: 2652107 Change-Id: If7f3fd45ff6d9a36bd0943acad9a8a378758d1a4
2020-03-27Modification in loc-core and location-api for EAP compilationKevin Tang
Change-Id: Ied3a988d635c7750acdf2b6057c6d1cd6d188615 CRs-Fixed: 2612482
2019-02-07Enable support for External AP buildMike Cailean
Enable support for build on External AP without libcutils or any Android library support. CRs-fixed: 2368435 Change-Id: I978127348fd6b8d90ed5ef0a714c02437dc59ee0
2018-08-22Add null check to avoid sigsegv on shutdownDante Russo
During shutdown, it's possible that msg task is freed as part of shutdown before the objects that can send messages to msg task are freed, which can result in a sigsegv when messages are sent during this time. Change-Id: I8f9963de75b395ca6c9a3d484416c34682cd0821 CRs-fixed: 2300596
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
2017-04-28Enable LOGV for gps directoryYingjie Wang
Define LOG_NDEBUG 0 to enable VERBOSE log messages in hardware/qcom/gps Change-Id: I954cad757f13d6bac99b7a06625daa0ace84a17e CRs-fixed: 2025673
2017-03-21Merge "possible NULL pointer dereference"Linux Build Service Account
2017-03-15possible NULL pointer dereferenceKevin Tang
it appears some of the MsgTask msgs might fail to create, ending up with a NULL pointer, in which case when it gets received, dereferencing a NULL pointer will happen, causing crash. Change-Id: I5a4295b4fba9c8383754e2abe6558782b1b83143 CRs-Fixed: 1106034
2017-03-15fixing a race condition on MsgTask::destroy()Kevin Tang
when MsgTask::destroy() happens, msg_q_unblock() triggers the running thread to come out from blocking state. A race condition may happen such that that thread may complete first, causing msgTask obj to be already deleted. A next allocation may change the value at MsgTask::mThread. Then when control comes back to destroy(), it may try to check mThread and call delete on it to crash the program. mThread is a heap obj, so it is possible to delete it after the hosting msgTask obj is deleted. We just have to keep its value on the stack before calling msg_q_unblock(). Change-Id: If15884815eea05fbfa523ec92aa300ed21ef897c CR-Fixed: 1091530
2017-02-28LocationAPI implementationDante Russo
Implementation of LocationAPI into gps hal to be a common API that is called into by platform specific APIs. Change-Id: Ie5a7bd217d4ae2175ad49e6aca2fb6ecd4702f3b CRs-fixed: 1112712
2016-03-15Revert "Revert "Fix compilation issues for m_master merge into oe_master"."Deven Patel
This reverts commit fa7a874eb0586c7844fe3a4cb8d0063ce53464f0 Change-Id: Id2415d80fa3cbdc124e0a3bdd2722db7f233ad53
2016-03-15Revert "Revert "Merging m_master changes to oe_master"."Deven Patel
This reverts commit a29688ff347be4972133eb11ccecaf03b0d3445e Change-Id: Iab525a58ddb6a00e119afe19f4f51b07b7f428f2
2016-03-07Revert "Merging m_master changes to oe_master".Deven Patel
This reverts commit 1aeb6bad84c0afd0e032c3d4d7e33959501e18f1 Change-Id: Iec0a96e7cdfe55ef5836c92a2ae1cce407f6cd5e
2016-03-07Revert "Fix compilation issues for m_master merge into oe_master".Deven Patel
This reverts commit ecb67363ee73c0374424795ae6014a794065f5ab Change-Id: I7b540247b246ea4caf710247d2c58b55515dae7c
2016-02-04Fix compilation issues for m_master merge into oe_masterKevin Tang
Fixed compilation issues for M upgrade Change-Id: I602aa7c8a2db9682a1fe94b7ca892027281deec7
2016-02-04Merging m_master changes to oe_masterKevin Tang
Merging LA m_master changes to oe_master merge head - 89f41a9b1602ce82ea6272f2a3be8595fb4b6058 Change-Id: I9010487f1d6f3d2e30a568b441bc5f9b719a0fb1
2015-11-06Move some debug logs to verbose.Bhavna Sharma
While it is important to continue to log events at debug level logs, logging all data may not be as important. Moving such logs to verbose level CRs-Fixed: 936031 Change-Id: I634d173b645180d55d620a24cce2c31aee966b8f
2015-09-21Crash fix with MsgTask API changeKevin Tang
Removed tCreate and tAssociate from MsgTask. LocThread now can optionally take a tCreate method. Associator is replaced with *firstMsg* option to MsgTask, which is a more generic option, that can associate or do other set up job at the create of a MsgTask. The current MsgTask doesn't use tCreate, which exposes a slight time window for Location HAL when its MsgTask is NOT associated to DVM heap but a message delivery to DVM could be attempted during this time. Change-Id: Iafd5b91b693baacb9b7064463f8c44f74026f54c CRs-Fixed: 902350
2015-08-04MsgTask thread must call associator function alwaysNeethu Joseph
All instances of MsgTask were not calling associator because of a use of a static variable check. All instance of MsgTask thread must call the associator. CRs-Fixed: 870450 Change-Id: I18314ec3ca0fe21f4bbd12a505bf552e64e25307
2015-08-04Adding a number of utilitiesKevin Tang
LocHeap, LocThread, LocTimer, and moved MsgTask to utils. Also added are LocRankable and LocRunnable abstract classes. Change-Id: I76975455d24f2c84a95dcc1b04f79fea562ea5ba CRs-Fixed: 855222