Changeset 4076 for trunk/MagicSoft/Cosy/base
- Timestamp:
- 05/15/04 16:46:27 (21 years ago)
- Location:
- trunk/MagicSoft/Cosy/base
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/base/coord.h
r2278 r4076 90 90 void Az(double d) { fY=d; } 91 91 void operator*=(const XY &c) { fX*=c.X(); fY*=c.Y(); } 92 void operator/=(const XY &c) { fX/=c.X(); fY/=c.Y(); } 92 93 void operator-=(const AltAz &c) { fX-=c.fX; fY-=c.fY; } 93 94 void operator+=(const AltAz &c) { fX+=c.fX; fY+=c.fY; } … … 117 118 void Az(double d) { fY=d; } 118 119 void operator*=(const XY &c) { fX*=c.X(); fY*=c.Y(); } 120 void operator/=(const XY &c) { fX/=c.X(); fY/=c.Y(); } 119 121 void operator-=(const ZdAz &c) { fX-=c.fX; fY-=c.fY; } 120 122 void operator+=(const ZdAz &c) { fX+=c.fX; fY+=c.fY; } -
trunk/MagicSoft/Cosy/base/msgqueue.cc
r2518 r4076 89 89 // a PostMsg is processed correctly 90 90 // 91 fMuxMsg.Lock(); 91 if (fMuxMsg.Lock()==13) 92 cout << "MsgQueue::Thread - mutex is already locked by this thread." << endl; 92 93 fBreak = 0; 93 fMuxMsg.UnLock(); 94 if (fMuxMsg.UnLock()==13) 95 cout << "MsgQueue::Thread - tried to unlock mutex locked by other thread." << endl; 94 96 95 97 #ifdef DEBUG … … 130 132 cout << "MsgQueue::PostMsg: Locking MsgQueue mutex..." << flush; 131 133 #endif 132 fMuxMsg.Lock(); 134 if (fMuxMsg.Lock()==13) 135 cout << "MsgQueue::PostMsg - mutex is already locked by this thread." << endl; 133 136 #ifdef DEBUG 134 137 cout << "done." << endl; … … 145 148 if (fBreak) 146 149 { 147 fMuxMsg.UnLock(); 150 if (fMuxMsg.UnLock()==13) 151 cout << "MsgQueue::PostMsg - tried to unlock mutex locked by other thread." << endl; 148 152 #ifdef DEBUG 149 153 cout << "------------> MsgQueue::PostMsg: Proc still pending... Message IGNORED." << endl; … … 176 180 #endif 177 181 fStart = 1; 178 fMuxMsg.UnLock(); 182 if (fMuxMsg.UnLock()==13) 183 cout << "MsgQueue::PostMsg - tried to unlock mutex locked by other thread." << endl; 179 184 #ifdef DEBUG 180 185 cout << "done." << endl;
Note:
See TracChangeset
for help on using the changeset viewer.