xref: /f-stack/app/micro_thread/mt_msg.h (revision a9643ea8)
1 
2 /**
3  * Tencent is pleased to support the open source community by making MSEC available.
4  *
5  * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
6  *
7  * Licensed under the GNU General Public License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License. You may
9  * obtain a copy of the License at
10  *
11  *     https://opensource.org/licenses/GPL-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software distributed under the
14  * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
15  * either express or implied. See the License for the specific language governing permissions
16  * and limitations under the License.
17  */
18 
19 
20 /**
21  *  @file mt_msg.h
22  *  @info ΢�߳�ͬ����Ϣ�Ļ���
23  **/
24 
25 #ifndef __MT_MSG_H__
26 #define __MT_MSG_H__
27 
28 namespace NS_MICRO_THREAD {
29 
30 /**
31  * @brief  ΢�߳���Ϣ�������
32  */
33 class IMtMsg
34 {
35 public:
36 
37     /**
38      * @brief  ΢�߳���Ϣ��Ĵ���������ں���
39      * @return 0 -�ɹ�, < 0 ʧ��
40      */
41     virtual int HandleProcess() { return -1; };
42 
43     /**
44      * @brief  ΢�߳���Ϣ���๹��������
45      */
46     IMtMsg() {};
47     virtual ~IMtMsg() {};
48 };
49 
50 
51 }
52 
53 #endif
54 
55