CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SlaveQueue.h
Go to the documentation of this file.
1 #ifndef EVENTFILTER_UTILITIES_SLAVEQUEUE_H
2 #define EVENTFILTER_UTILITIES_SLAVEQUEUE_H
3 
4 #include <stdio.h> /* standard I/O functions. */
5 #include <stdlib.h> /* malloc(), free() etc. */
6 #include <sys/types.h> /* various type definitions. */
7 #include <sys/ipc.h> /* general SysV IPC structures */
8 #include <sys/msg.h> /* message queue functions and structs. */
9 #include <errno.h>
10 #include <string.h>
11 
14 
15 namespace evf {
16 
17 class SlaveQueue {
18 
19 public:
20 
21  SlaveQueue(unsigned int ind);
22  ~SlaveQueue();
23 
24  int post(MsgBuf &ptr);
25  unsigned long rcv(MsgBuf &ptr);
26  bool rcvQuiet(MsgBuf &ptr);
27  unsigned long rcvNonBlocking(MsgBuf &ptr);
28  unsigned long rcvNonBlockingAny(MsgBuf &ptr);
29  int id() const;
30 
31 private:
32 
33  int queue_id_; /* ID of the created queue. */
34 
35 };
36 }
37 #endif
int id() const
Definition: SlaveQueue.cc:76
bool rcvQuiet(MsgBuf &ptr)
Definition: SlaveQueue.cc:41
unsigned long rcvNonBlocking(MsgBuf &ptr)
Definition: SlaveQueue.cc:49
int post(MsgBuf &ptr)
Definition: SlaveQueue.cc:18
unsigned long rcvNonBlockingAny(MsgBuf &ptr)
Definition: SlaveQueue.cc:63
unsigned long rcv(MsgBuf &ptr)
Definition: SlaveQueue.cc:28
SlaveQueue(unsigned int ind)
Definition: SlaveQueue.cc:5