Index: trunk/MagicSoft/Cosy/base/MThread.cc
===================================================================
--- trunk/MagicSoft/Cosy/base/MThread.cc	(revision 1266)
+++ trunk/MagicSoft/Cosy/base/MThread.cc	(revision 1273)
@@ -10,8 +10,11 @@
 // Starts the derived thread if you don't specify false.
 //
-MThread::MThread(bool start) : fIsRunning(false), fIsDetached(false), fThread(NULL), fReturn(NULL), fPriority(0)
+MThread::MThread(bool start, int prio) : fIsRunning(false), fIsDetached(false), fThread(NULL), fReturn(NULL)
 {
     if (start)
+    {
+        SetPriority(prio);
         Start();
+    }
 }
 
Index: trunk/MagicSoft/Cosy/base/MThread.h
===================================================================
--- trunk/MagicSoft/Cosy/base/MThread.h	(revision 1266)
+++ trunk/MagicSoft/Cosy/base/MThread.h	(revision 1273)
@@ -26,5 +26,5 @@
 
 public:
-    MThread(bool start=true);
+    MThread(bool start=true, int prio=0);
     virtual ~MThread();
 
Index: trunk/MagicSoft/Cosy/base/coord.h
===================================================================
--- trunk/MagicSoft/Cosy/base/coord.h	(revision 1266)
+++ trunk/MagicSoft/Cosy/base/coord.h	(revision 1273)
@@ -118,4 +118,7 @@
     double Dec() const { return fY; }
 
+    void Ra(double x)  { fX = x; }
+    void Dec(double y) { fY = y; }
+
     RaDec operator/(double c) const { return RaDec(fX/c, fY/c); }
     RaDec operator*(double c) const { return RaDec(fX*c, fY*c); }
Index: trunk/MagicSoft/Cosy/base/msgqueue.cc
===================================================================
--- trunk/MagicSoft/Cosy/base/msgqueue.cc	(revision 1266)
+++ trunk/MagicSoft/Cosy/base/msgqueue.cc	(revision 1273)
@@ -57,4 +57,8 @@
 
         fRc=Proc(fMsg, fMp);
+
+        if (fMsg==WM_QUIT)
+            break;
+
     }
 }
Index: trunk/MagicSoft/Cosy/base/msgqueue.h
===================================================================
--- trunk/MagicSoft/Cosy/base/msgqueue.h	(revision 1266)
+++ trunk/MagicSoft/Cosy/base/msgqueue.h	(revision 1273)
@@ -5,4 +5,5 @@
 
 #define WM_NULL 0x0000
+#define WM_QUIT 0xffff
 
 class MsgQueue
