Home | History | Annotate | Download | only in adapter
      1 // Copyright 2014 PDFium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
      6 
      7 #ifndef FWL_ADAPTERTHREADMGR_H_
      8 #define FWL_ADAPTERTHREADMGR_H_
      9 
     10 class IFWL_Thread;
     11 
     12 class IFWL_AdapterThreadMgr {
     13  public:
     14   virtual ~IFWL_AdapterThreadMgr() {}
     15   virtual FWL_ERR Start(IFWL_Thread* pThread,
     16                         FWL_HTHREAD& hThread,
     17                         FX_BOOL bSuspended = FALSE) = 0;
     18   virtual FWL_ERR Resume(FWL_HTHREAD hThread) = 0;
     19   virtual FWL_ERR Suspend(FWL_HTHREAD hThread) = 0;
     20   virtual FWL_ERR Kill(FWL_HTHREAD hThread, int32_t iExitCode) = 0;
     21   virtual FWL_ERR Stop(FWL_HTHREAD hThread, int32_t iExitCode) = 0;
     22   virtual IFWL_Thread* GetCurrentThread() = 0;
     23 };
     24 #endif  // FWL_ADAPTERTHREADMGR_H_
     25