Changeset 8833 for trunk/MagicSoft/Cosy/main/MCosy.h
- Timestamp:
- 01/24/08 14:05:28 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/main/MCosy.h
r7788 r8833 2 2 #define COSY_MCosy 3 3 4 #include "coord.h"4 //#include "coord.h" 5 5 #include "msgqueue.h" 6 #include "MPointing.h" 7 8 #ifndef MARS_MThread 9 #define COSY_MThread 6 10 #include "MThread.h" 7 # include "MBending.h"11 #endif 8 12 9 13 #ifndef COSY_Network … … 49 53 class MDriveCom; 50 54 51 class MTTalk : public M Thread55 class MTTalk : public MyThreadX 52 56 { 53 57 private: 54 58 MCosy *fCosy; 55 59 56 void *Thread();60 Int_t Thread(); 57 61 58 62 public: 59 MTTalk(MCosy *cosy) : M Thread(false), fCosy(cosy)60 { 61 SetPriority(10);62 Detach();63 Start();63 MTTalk(MCosy *cosy) : MyThreadX("MTTalk"), fCosy(cosy) 64 { 65 //SetPriority(10); 66 //Detach(); 67 RunThread(); 64 68 } 65 ~MTTalk() { std::cout << "~MTTalk::MTTalk" << std::endl; } 69 ~MTTalk() 70 { 71 std::cout << "~MTTalk::CancelThread" << std::endl; 72 CancelThread(); 73 std::cout << "~MTTalk::MTTalk" << std::endl; 74 } 66 75 }; 67 76 … … 70 79 { 71 80 friend class MTTalk; 72 friend class M Pointing;81 friend class MSlewing; 73 82 friend class MTracking; 74 83 … … 125 134 XY kGearTot; // describing the resolution of the system [re/U_tel] 126 135 127 M Bending fBending;136 MPointing fBending; 128 137 129 138 UInt_t fStatus; … … 176 185 177 186 public: 178 MCosy( /*int mode,*/ const char *dev, const int baud, MLog &out=gLog);187 MCosy(); 179 188 ~MCosy(); 180 189 … … 182 191 void Stop(); 183 192 184 void *Proc(int msg, void *mp);193 Int_t Proc(int msg, void *mp); 185 194 186 195 Bool_t HandleTimer(TTimer *t);
Note:
See TracChangeset
for help on using the changeset viewer.