VR-Vantage 3.0 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ciThread.h
Go to the documentation of this file.
1 
2 // Copyright JRM Enterprises, Inc. 2004
3 // All rights reserved.
4 //
5 // This code is the intellectual property of JRM Enterprises, Inc.
6 // It may not be used or released as source or compiled binary form
7 // without the prior written consent of JRM Enterprises, Inc.
8 //
9 // Original Author: Nikolai Fedoroff
10 // Date: Sept 2004
11 //
12 // ciTreeCtrl.cpp: implementation of ciTreeCtrl class.
13 // ciTreeCtrl.h: interface for ciTreeCtrl class.
14 //
15 //
16 // $Header: /cvsroot/CommonInterface/CILib/include/ciThread.h,v 1.4 2004-12-01 23:38:03 cvsuser Exp $
17 //
18 // $Log: not supported by cvs2svn $
19 // Revision 1.4 2004/12/01 23:38:03 cvsuser
20 // Regularly scheduled progress update...
21 //
22 // Nik
23 //
24 // Revision 1.3 2004/11/29 21:16:10 cvsuser
25 // Made scenario panel combo boxes read only
26 //
27 // Nik
28 //
29 // Revision 1.2 2004/11/24 21:05:34 cvsuser
30 // Couple of fixes to ciThread
31 //
32 // Nik
33 //
34 // Revision 1.1 2004/11/23 22:51:54 cvsuser
35 // Added ciThread base class...
36 //
37 // Nik
38 //
39 
40 
41 
42 
43 #if !defined _ciThread_h_
44 #define _ciThread_h_
45 
46 #include <wx/wx.h>
47 #include <wx/thread.h>
48 
49 class ciThread :
50  public wxThread
51 {
52 public:
53  ciThread(wxThreadKind kind = wxTHREAD_DETACHED);
54  virtual ~ciThread(void);
55 
56 public:
57 
59 // testValid
68  static bool testValid() {return m_isValid;}
69 
70 
71 
73 // postThreadEvent
83  void postThreadEvent(unsigned event, void *param = NULL);
84 
85 protected: // attrubutes;
86 
87  struct ThreadEvent
88  {
89  unsigned int event;
90  void *param;
91  };
92 
96 protected: // methods
97 
99 // pushEvent
106  void pushEvent(ThreadEvent *event);
107 
109 // pushEvent
116  void popEvent();
117 
119 // processThreadEventQue
126  virtual bool processEventQueue();
127 
129 // Entry
136  virtual wxThread::ExitCode Entry();
137 
138 private:
139  static bool m_isValid;
140  const int m_stackSize;
141 
142 };
143 
144 
145 #endif // _ciThread_h_


Copyright © 2005-2022 MAK Technologies. All Rights Reserved (www.mak.com)