OLD | NEW |
---|---|
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef _FWL_THREAD_IMP_H | 7 #ifndef FWL_THREADIMP_H_ |
8 #define _FWL_THREAD_IMP_H | 8 #define FWL_THREADIMP_H_ |
9 | 9 |
10 #include "xfa/include/fwl/core/fwl_thread.h" // For FWL_HTHREAD. | 10 #include "xfa/include/fwl/core/fwl_thread.h" // For FWL_HTHREAD. |
11 | 11 |
12 class CFWL_NoteDriver; | 12 class CFWL_NoteDriver; |
13 class IFWL_NoteDriver; | 13 class IFWL_NoteDriver; |
14 | 14 |
15 class CFWL_Thread { | 15 class CFWL_ThreadImp { |
Lei Zhang
2015/12/05 01:00:34
Are you going to inherit from IFWL_Thread in a dif
| |
16 public: | 16 public: |
17 CFWL_Thread(); | 17 CFWL_ThreadImp(); |
18 virtual ~CFWL_Thread(); | 18 virtual ~CFWL_ThreadImp(); |
19 virtual void Release() { delete this; } | 19 |
Lei Zhang
2015/12/05 01:00:34
IFWL_Thread has a Release(), BTW.
| |
20 virtual FWL_ERR Run(FWL_HTHREAD hThread); | 20 virtual FWL_ERR Run(FWL_HTHREAD hThread); |
21 }; | 21 }; |
22 | 22 |
23 class CFWL_NoteThread : public CFWL_Thread { | 23 class CFWL_NoteThreadImp : public CFWL_ThreadImp { |
24 public: | 24 public: |
25 CFWL_NoteThread(); | 25 CFWL_NoteThreadImp(); |
26 virtual ~CFWL_NoteThread(); | 26 virtual ~CFWL_NoteThreadImp(); |
27 virtual FWL_ERR Run(FWL_HTHREAD hThread); | 27 |
28 FWL_ERR Run(FWL_HTHREAD hThread) override; | |
28 virtual IFWL_NoteDriver* GetNoteDriver(); | 29 virtual IFWL_NoteDriver* GetNoteDriver(); |
29 | 30 |
30 protected: | 31 protected: |
31 CFWL_NoteDriver* m_pNoteDriver; | 32 CFWL_NoteDriver* m_pNoteDriver; |
32 FWL_HTHREAD m_hThread; | |
33 }; | 33 }; |
34 #endif | 34 |
35 #endif // FWL_THREADIMP_H_ | |
OLD | NEW |