summaryrefslogtreecommitdiff
path: root/xfa/src/fwl/src/core/include/fwl_threadimp.h
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/src/fwl/src/core/include/fwl_threadimp.h')
-rw-r--r--xfa/src/fwl/src/core/include/fwl_threadimp.h61
1 files changed, 27 insertions, 34 deletions
diff --git a/xfa/src/fwl/src/core/include/fwl_threadimp.h b/xfa/src/fwl/src/core/include/fwl_threadimp.h
index 26acc54006..735708d98c 100644
--- a/xfa/src/fwl/src/core/include/fwl_threadimp.h
+++ b/xfa/src/fwl/src/core/include/fwl_threadimp.h
@@ -13,41 +13,34 @@ class IFWL_NoteDriver;
class CFWL_Thread;
class CFWL_NoteThread;
class CFWL_ControlThread;
-class CFWL_Thread
-{
-public:
- CFWL_Thread();
- virtual ~CFWL_Thread();
- virtual void Release()
- {
- delete this;
- }
- virtual FWL_ERR Run(FWL_HTHREAD hThread);
+class CFWL_Thread {
+ public:
+ CFWL_Thread();
+ virtual ~CFWL_Thread();
+ virtual void Release() { delete this; }
+ virtual FWL_ERR Run(FWL_HTHREAD hThread);
};
-class CFWL_ControlThread : public CFWL_Thread
-{
-public:
- CFWL_ControlThread(IFWL_Thread * defHandler)
- {
- _defHandler = defHandler;
- }
- virtual ~CFWL_ControlThread();
- virtual FWL_ERR Run(FWL_HTHREAD hThread);
-protected:
- IFWL_Thread * _defHandler;
+class CFWL_ControlThread : public CFWL_Thread {
+ public:
+ CFWL_ControlThread(IFWL_Thread* defHandler) { _defHandler = defHandler; }
+ virtual ~CFWL_ControlThread();
+ virtual FWL_ERR Run(FWL_HTHREAD hThread);
+
+ protected:
+ IFWL_Thread* _defHandler;
};
-class CFWL_NoteThread : public CFWL_Thread
-{
-public:
- CFWL_NoteThread();
- virtual ~CFWL_NoteThread();
- virtual FWL_ERR Run(FWL_HTHREAD hThread);
- virtual IFWL_NoteDriver* GetNoteDriver();
-protected:
- CFWL_NoteDriver *m_pNoteDriver;
- FWL_HTHREAD m_hThread;
- static CFWL_ControlThread * _assistantThreadHandler;
- static FWL_HTHREAD _assistantThread;
- static int32_t _refCount;
+class CFWL_NoteThread : public CFWL_Thread {
+ public:
+ CFWL_NoteThread();
+ virtual ~CFWL_NoteThread();
+ virtual FWL_ERR Run(FWL_HTHREAD hThread);
+ virtual IFWL_NoteDriver* GetNoteDriver();
+
+ protected:
+ CFWL_NoteDriver* m_pNoteDriver;
+ FWL_HTHREAD m_hThread;
+ static CFWL_ControlThread* _assistantThreadHandler;
+ static FWL_HTHREAD _assistantThread;
+ static int32_t _refCount;
};
#endif