Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

Side by Side Diff: xfa/include/fwl/adapter/fwl_adapterthreadmgr.h

Issue 1503503003: Rename CFWL_Thread classes to ThreadImp (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Remove one more dead class. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | xfa/include/fwl/core/fwl_thread.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_ADAPTERTHREADMGR_H_
8 #define _FWL_ADAPTER_THREAD_H 8 #define FWL_ADAPTERTHREADMGR_H_
9
9 class IFWL_Thread; 10 class IFWL_Thread;
10 class IFWL_AdapterMutex;
11 class IFWL_AdapterSemaphore;
12 11
13 class IFWL_AdapterThreadMgr { 12 class IFWL_AdapterThreadMgr {
14 public: 13 public:
15 virtual ~IFWL_AdapterThreadMgr() {} 14 virtual ~IFWL_AdapterThreadMgr() {}
16 virtual FWL_ERR Start(IFWL_Thread* pThread, 15 virtual FWL_ERR Start(IFWL_Thread* pThread,
17 FWL_HTHREAD& hThread, 16 FWL_HTHREAD& hThread,
18 FX_BOOL bSuspended = FALSE) = 0; 17 FX_BOOL bSuspended = FALSE) = 0;
19 virtual FWL_ERR Resume(FWL_HTHREAD hThread) = 0; 18 virtual FWL_ERR Resume(FWL_HTHREAD hThread) = 0;
20 virtual FWL_ERR Suspend(FWL_HTHREAD hThread) = 0; 19 virtual FWL_ERR Suspend(FWL_HTHREAD hThread) = 0;
21 virtual FWL_ERR Kill(FWL_HTHREAD hThread, int32_t iExitCode) = 0; 20 virtual FWL_ERR Kill(FWL_HTHREAD hThread, int32_t iExitCode) = 0;
22 virtual FWL_ERR Stop(FWL_HTHREAD hThread, int32_t iExitCode) = 0; 21 virtual FWL_ERR Stop(FWL_HTHREAD hThread, int32_t iExitCode) = 0;
23 virtual IFWL_Thread* GetCurrentThread() = 0; 22 virtual IFWL_Thread* GetCurrentThread() = 0;
24 }; 23 };
25 class IFWL_AdapterSemaphore { 24 #endif // FWL_ADAPTERTHREADMGR_H_
26 public:
27 virtual ~IFWL_AdapterSemaphore() {}
28 static IFWL_AdapterSemaphore* Create();
29 virtual FWL_ERR Destroy() = 0;
30 virtual FWL_ERR Wait() const = 0;
31 virtual FWL_ERR Post() = 0;
32 virtual FWL_ERR Value(FX_DWORD& val) const = 0;
33 virtual FWL_ERR Reset(int32_t init) = 0;
34 };
35 #endif
OLDNEW
« no previous file with comments | « no previous file | xfa/include/fwl/core/fwl_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698