Add sendMsg to LocApiBase for utility
It is useful for LocApiBase derived classes to have access to sending messages to the message handling thread without going through an adapter Change-Id: If60c473bfb504aab68ec661ecdfb012ef410c9cf CRs-fixed: 615958
This commit is contained in:
parent
d77629b0a0
commit
a2e85b1df7
1 changed files with 4 additions and 1 deletions
|
@ -70,7 +70,6 @@ class LocApiBase {
|
|||
friend struct LocOpenMsg;
|
||||
friend class ContextBase;
|
||||
const MsgTask* mMsgTask;
|
||||
|
||||
LocAdapterBase* mLocAdapters[MAX_ADAPTERS];
|
||||
|
||||
protected:
|
||||
|
@ -87,6 +86,10 @@ protected:
|
|||
const LOC_API_ADAPTER_EVENT_MASK_T mExcludedMask;
|
||||
|
||||
public:
|
||||
inline void sendMsg(const LocMsg* msg) const {
|
||||
mMsgTask->sendMsg(msg);
|
||||
}
|
||||
|
||||
void addAdapter(LocAdapterBase* adapter);
|
||||
void removeAdapter(LocAdapterBase* adapter);
|
||||
|
||||
|
|
Loading…
Reference in a new issue