Ignore:
Timestamp:
08/15/01 12:52:38 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/candrv
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/candrv/vmodican.cc

    r909 r910  
    793793    SendCanFrame(cobid, msg);
    794794}
    795 /*
    796 void VmodIcan::StopReceiver()
    797 {
    798     if (!fRxThrd)
    799         return;
    800 
    801     pthread_cancel(*fRxThrd);
    802 
    803     delete fRxThrd;
    804     fRxThrd = NULL;
    805     lout << "- Receiver Thread stopped." << endl;
    806 }
    807 */
    808 
    809 /*
    810 void VmodIcan::StartReceiver()
    811 {
    812     **************************************
    813     * create thread waiting for messages *
    814     **************************************
    815     if (fRxThrd)
    816     {
    817         cout << "Error: rx thread already started." << endl;
    818         return;
    819     }
    820 
    821     lout << "- Starting receiving Thread." << endl;
    822 
    823     fRxThrd = new pthread_t;
    824     pthread_create(fRxThrd, NULL, ReceiveThread, this);
    825 }
    826 */
    827 
  • trunk/MagicSoft/Cosy/candrv/vmodican.h

    r909 r910  
    1010
    1111#include "MThread.h"
    12 /*
    13 class VmodIcanRX : public MThread
    14 {
    15 private:
    16     VmodIcan *fModule;
    1712
    18     void *Thread();
    19 
    20 public:
    21     MTGui(VmodIcan *mod) : MThread(false), fModule(mod)
    22     {
    23         SetPriority(-10);
    24         Detach();
    25     }
    26 };
    27 */
    2813class VmodIcan : public Log, protected MThread
    2914{
     
    3217private:
    3318    int fd; // file descriptor for can module
    34     //    pthread_t *fRxThrd;
    3519
    3620    int Ioctl(int msg, void *arg);
     
    7155    virtual void TerminateApp() { exit(-1); }
    7256
    73 //protected:
    74 //    void StartReceiver();
    75 //    void StopReceiver();
    76 
    7757public:
    7858    VmodIcan(const char *dev, const int baud, ostream &out=cout);
Note: See TracChangeset for help on using the changeset viewer.