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 XFA_INCLUDE_FWL_ADAPTER_FWL_ADAPTERTHREADMGR_H_ | 7 #ifndef XFA_INCLUDE_FWL_ADAPTER_FWL_ADAPTERTHREADMGR_H_ |
8 #define XFA_INCLUDE_FWL_ADAPTER_FWL_ADAPTERTHREADMGR_H_ | 8 #define XFA_INCLUDE_FWL_ADAPTER_FWL_ADAPTERTHREADMGR_H_ |
9 | 9 |
| 10 #include "core/include/fxcrt/fx_system.h" |
10 #include "xfa/include/fwl/core/fwl_error.h" | 11 #include "xfa/include/fwl/core/fwl_error.h" |
11 #include "xfa/include/fwl/core/fwl_thread.h" | 12 #include "xfa/include/fwl/core/fwl_thread.h" |
12 | 13 |
13 class IFWL_AdapterThreadMgr { | 14 class IFWL_AdapterThreadMgr { |
14 public: | 15 public: |
15 virtual ~IFWL_AdapterThreadMgr() {} | 16 virtual ~IFWL_AdapterThreadMgr() {} |
16 virtual FWL_ERR Start(IFWL_Thread* pThread, | 17 virtual FWL_ERR Start(IFWL_Thread* pThread, |
17 FWL_HTHREAD& hThread, | 18 FWL_HTHREAD& hThread, |
18 FX_BOOL bSuspended = FALSE) = 0; | 19 FX_BOOL bSuspended = FALSE) = 0; |
19 virtual FWL_ERR Resume(FWL_HTHREAD hThread) = 0; | 20 virtual FWL_ERR Resume(FWL_HTHREAD hThread) = 0; |
20 virtual FWL_ERR Suspend(FWL_HTHREAD hThread) = 0; | 21 virtual FWL_ERR Suspend(FWL_HTHREAD hThread) = 0; |
21 virtual FWL_ERR Kill(FWL_HTHREAD hThread, int32_t iExitCode) = 0; | 22 virtual FWL_ERR Kill(FWL_HTHREAD hThread, int32_t iExitCode) = 0; |
22 virtual FWL_ERR Stop(FWL_HTHREAD hThread, int32_t iExitCode) = 0; | 23 virtual FWL_ERR Stop(FWL_HTHREAD hThread, int32_t iExitCode) = 0; |
23 virtual IFWL_Thread* GetCurrentThread() = 0; | 24 virtual IFWL_Thread* GetCurrentThread() = 0; |
24 }; | 25 }; |
25 #endif // XFA_INCLUDE_FWL_ADAPTER_FWL_ADAPTERTHREADMGR_H_ | 26 #endif // XFA_INCLUDE_FWL_ADAPTER_FWL_ADAPTERTHREADMGR_H_ |
OLD | NEW |