| 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_ADAPTER_THREAD_H | 7 #ifndef _FWL_ADAPTER_THREAD_H |
| 8 #define _FWL_ADAPTER_THREAD_H | 8 #define _FWL_ADAPTER_THREAD_H |
| 9 class IFWL_Thread; | 9 class IFWL_Thread; |
| 10 class IFWL_AdapterThreadMgr; | 10 class IFWL_AdapterThreadMgr; |
| 11 class IFWL_AdapterMutex; | 11 class IFWL_AdapterMutex; |
| 12 class IFWL_AdapterSemaphore; | 12 class IFWL_AdapterSemaphore; |
| 13 class IFWL_AdapterThreadMgr | 13 class IFWL_AdapterThreadMgr |
| 14 { | 14 { |
| 15 public: | 15 public: |
| 16 virtual FWL_ERR Start(IFWL_Thread *pThread, FWL_HTHREAD &hThread
, FX_BOOL bSuspended = FALSE) = 0; | 16 virtual FWL_ERR Start(IFWL_Thread *pThread, FWL_HTHREAD &hThread
, FX_BOOL bSuspended = FALSE) = 0; |
| 17 virtual FWL_ERR Resume(FWL_HTHREAD hThread) = 0; | 17 virtual FWL_ERR Resume(FWL_HTHREAD hThread) = 0; |
| 18 virtual FWL_ERR Suspend(FWL_HTHREAD hThread) = 0; | 18 virtual FWL_ERR Suspend(FWL_HTHREAD hThread) = 0; |
| 19 virtual FWL_ERR» » Kill(FWL_HTHREAD hThread, FX_INT32 iExitCode) =
0; | 19 virtual FWL_ERR» » Kill(FWL_HTHREAD hThread, int32_t iExitCode) = 0
; |
| 20 virtual FWL_ERR» » Stop(FWL_HTHREAD hThread, FX_INT32 iExitCode) =
0; | 20 virtual FWL_ERR» » Stop(FWL_HTHREAD hThread, int32_t iExitCode) = 0
; |
| 21 virtual IFWL_Thread* GetCurrentThread() = 0; | 21 virtual IFWL_Thread* GetCurrentThread() = 0; |
| 22 }; | 22 }; |
| 23 class IFWL_AdapterSemaphore | 23 class IFWL_AdapterSemaphore |
| 24 { | 24 { |
| 25 public: | 25 public: |
| 26 static IFWL_AdapterSemaphore * Create(); | 26 static IFWL_AdapterSemaphore * Create(); |
| 27 virtual FWL_ERR Destroy() = 0; | 27 virtual FWL_ERR Destroy() = 0; |
| 28 virtual FWL_ERR Wait() const = 0; | 28 virtual FWL_ERR Wait() const = 0; |
| 29 virtual FWL_ERR Post() = 0; | 29 virtual FWL_ERR Post() = 0; |
| 30 virtual FWL_ERR Value(FX_DWORD &val) const = 0; | 30 virtual FWL_ERR Value(FX_DWORD &val) const = 0; |
| 31 virtual FWL_ERR Reset(FX_INT32 init) = 0; | 31 virtual FWL_ERR Reset(int32_t init) = 0; |
| 32 }; | 32 }; |
| 33 #endif | 33 #endif |
| OLD | NEW |