source: trunk/Cosy/base/msgqueue.h@ 13710

Last change on this file since 13710 was 8843, checked in by tbretz, 17 years ago
*** empty log message ***
File size: 604 bytes
Line 
1#ifndef COSY_MsgQueue
2#define COSY_MsgQueue
3
4#ifndef ROOT_TMutex
5#include <TMutex.h>
6#endif
7
8#ifndef MARS_MThread
9#include "MThread.h"
10#endif
11
12#define WM_NULL 0x0000
13#define WM_QUIT 0xffff
14
15class MsgQueue : public MThread
16{
17private:
18 int fNextMsg;
19 char *fNextPtr;
20
21 TMutex fMuxMsg;
22
23 Int_t Thread();
24
25public:
26 MsgQueue();
27 virtual ~MsgQueue();
28
29 int Break() const;
30
31 virtual Int_t Proc(int msg, void *mp1);
32 Int_t Proc(int msg) { return Proc(msg, 0); }
33
34 void *PostMsg(int msg, void *mp1, int size);
35 void *PostMsg(int msg) { return PostMsg(msg, 0, 0); }
36};
37
38#endif
Note: See TracBrowser for help on using the repository browser.