diff options
author | Kevin Tang <zhikait@codeaurora.org> | 2015-09-11 19:40:25 -0700 |
---|---|---|
committer | Kevin Tang <zhikait@codeaurora.org> | 2015-09-21 14:45:58 -0700 |
commit | 94ecbf68045cb44f6b6287621007ac845ed88ee2 (patch) | |
tree | 238cfd22f18ec89b97d1342d8276cc61fb716fa5 /utils/LocTimer.h | |
parent | 049cc84d3a9df23f92fda74845c5f4dd95507c23 (diff) | |
download | gps-94ecbf68045cb44f6b6287621007ac845ed88ee2.tar.gz |
Crash fix with MsgTask API change
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
Diffstat (limited to 'utils/LocTimer.h')
-rw-r--r-- | utils/LocTimer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/LocTimer.h b/utils/LocTimer.h index 9606fe5..c146852 100644 --- a/utils/LocTimer.h +++ b/utils/LocTimer.h @@ -35,14 +35,14 @@ // opaque class to provide service implementation. class LocTimerDelegate; -class LocUtilSharedLock; +class LocSharedLock; // LocTimer client must extend this class and implementthe callback. // start() / stop() methods are to arm / disarm timer. class LocTimer { LocTimerDelegate* mTimer; - LocUtilSharedLock* mLock; + LocSharedLock* mLock; // don't really want mLock to be manipulated by clients, yet LocTimer // has to have a reference to the lock so that the delete of LocTimer // and LocTimerDelegate can work together on their share resources. |