Changeset 910 for trunk/MagicSoft/Cosy/candrv
- Timestamp:
- 08/15/01 12:52:38 (23 years ago)
- Location:
- trunk/MagicSoft/Cosy/candrv
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/candrv/vmodican.cc
r909 r910 793 793 SendCanFrame(cobid, msg); 794 794 } 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 10 10 11 11 #include "MThread.h" 12 /*13 class VmodIcanRX : public MThread14 {15 private:16 VmodIcan *fModule;17 12 18 void *Thread();19 20 public:21 MTGui(VmodIcan *mod) : MThread(false), fModule(mod)22 {23 SetPriority(-10);24 Detach();25 }26 };27 */28 13 class VmodIcan : public Log, protected MThread 29 14 { … … 32 17 private: 33 18 int fd; // file descriptor for can module 34 // pthread_t *fRxThrd;35 19 36 20 int Ioctl(int msg, void *arg); … … 71 55 virtual void TerminateApp() { exit(-1); } 72 56 73 //protected:74 // void StartReceiver();75 // void StopReceiver();76 77 57 public: 78 58 VmodIcan(const char *dev, const int baud, ostream &out=cout);
Note:
See TracChangeset
for help on using the changeset viewer.