2 * Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef SMS_CDMA_PLUGIN_UA_MANAGER_H
18 #define SMS_CDMA_PLUGIN_UA_MANAGER_H
21 /*==================================================================================================
23 ==================================================================================================*/
26 #include "MsgThread.h"
27 #include "SmsCdmaPluginTypes.h"
30 /*==================================================================================================
32 ==================================================================================================*/
33 class SmsPluginUAManager : public MsgThread
36 static SmsPluginUAManager* instance();
38 /* virtual void start(); */
40 void addReqEntity(sms_request_info_s *request);
44 ~SmsPluginUAManager();
45 void lock() { mx.lock(); };
46 void unlock() { mx.unlock(); };
47 void wait() { cv.wait(mx.pMutex()); };
48 void signal() { cv.signal(); };
52 static SmsPluginUAManager* pInstance;
56 MsgSimpleQ <sms_request_info_s> smsTranQ;
62 #endif /* SMS_CDMA_PLUGIN_UA_MANAGER_H */