Ignore:
Timestamp:
05/15/04 16:46:27 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/base
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/base/coord.h

    r2278 r4076  
    9090    void Az(double d)  { fY=d; }
    9191    void operator*=(const XY &c)    { fX*=c.X(); fY*=c.Y(); }
     92    void operator/=(const XY &c)    { fX/=c.X(); fY/=c.Y(); }
    9293    void operator-=(const AltAz &c) { fX-=c.fX; fY-=c.fY; }
    9394    void operator+=(const AltAz &c) { fX+=c.fX; fY+=c.fY; }
     
    117118    void Az(double d) { fY=d; }
    118119    void operator*=(const XY &c)   { fX*=c.X(); fY*=c.Y(); }
     120    void operator/=(const XY &c)   { fX/=c.X(); fY/=c.Y(); }
    119121    void operator-=(const ZdAz &c) { fX-=c.fX; fY-=c.fY; }
    120122    void operator+=(const ZdAz &c) { fX+=c.fX; fY+=c.fY; }
  • trunk/MagicSoft/Cosy/base/msgqueue.cc

    r2518 r4076  
    8989        // a PostMsg is processed correctly
    9090        //
    91         fMuxMsg.Lock();
     91        if (fMuxMsg.Lock()==13)
     92            cout << "MsgQueue::Thread - mutex is already locked by this thread." << endl;
    9293        fBreak = 0;
    93         fMuxMsg.UnLock();
     94        if (fMuxMsg.UnLock()==13)
     95            cout << "MsgQueue::Thread - tried to unlock mutex locked by other thread." << endl;
    9496
    9597#ifdef DEBUG
     
    130132    cout << "MsgQueue::PostMsg: Locking MsgQueue mutex..." << flush;
    131133#endif
    132     fMuxMsg.Lock();
     134    if (fMuxMsg.Lock()==13)
     135        cout << "MsgQueue::PostMsg - mutex is already locked by this thread." << endl;
    133136#ifdef DEBUG
    134137    cout << "done." << endl;
     
    145148    if (fBreak)
    146149    {
    147         fMuxMsg.UnLock();
     150        if (fMuxMsg.UnLock()==13)
     151            cout << "MsgQueue::PostMsg - tried to unlock mutex locked by other thread." << endl;
    148152#ifdef DEBUG
    149153        cout << "------------> MsgQueue::PostMsg: Proc still pending... Message IGNORED." << endl;
     
    176180#endif
    177181    fStart = 1;
    178     fMuxMsg.UnLock();
     182    if (fMuxMsg.UnLock()==13)
     183        cout << "MsgQueue::PostMsg - tried to unlock mutex locked by other thread." << endl;
    179184#ifdef DEBUG
    180185    cout << "done." << endl;
Note: See TracChangeset for help on using the changeset viewer.