Ignore:
Timestamp:
01/24/08 14:05:28 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/main/MCosy.h

    r7788 r8833  
    22#define COSY_MCosy
    33
    4 #include "coord.h"
     4//#include "coord.h"
    55#include "msgqueue.h"
     6#include "MPointing.h"
     7
     8#ifndef MARS_MThread
     9#define COSY_MThread
    610#include "MThread.h"
    7 #include "MBending.h"
     11#endif
    812
    913#ifndef COSY_Network
     
    4953class MDriveCom;
    5054
    51 class MTTalk : public MThread
     55class MTTalk : public MyThreadX
    5256{
    5357private:
    5458    MCosy *fCosy;
    5559
    56     void *Thread();
     60    Int_t Thread();
    5761
    5862public:
    59     MTTalk(MCosy *cosy) : MThread(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();
    6468    }
    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    }
    6675};
    6776
     
    7079{
    7180    friend class MTTalk;
    72     friend class MPointing;
     81    friend class MSlewing;
    7382    friend class MTracking;
    7483
     
    125134    XY kGearTot; // describing the resolution of the system [re/U_tel]
    126135
    127     MBending fBending;
     136    MPointing fBending;
    128137
    129138    UInt_t fStatus;
     
    176185
    177186public:
    178     MCosy(/*int mode,*/ const char *dev, const int baud, MLog &out=gLog);
     187    MCosy();
    179188    ~MCosy();
    180189
     
    182191    void Stop();
    183192
    184     void *Proc(int msg, void *mp);
     193    Int_t Proc(int msg, void *mp);
    185194
    186195    Bool_t HandleTimer(TTimer *t);
Note: See TracChangeset for help on using the changeset viewer.