struct message * processes = NULL;
/**
- * Message queue variables
+ * Message Queue variables
+ */
+
+/**
+ * Unique key of message queue.
*/
key_t qkey = 12356;
+
+/**
+ * Queue descriptor.
+ */
int qid;
+/**
+ * Structure holding queue message data.
+ * Parameter mtype describes process to whom message is sent.
+ * Parameter signo is a signal to raise after getting message.
+ */
struct queue_message {
long mtype;
int signo[1];
struct message * processes = NULL;
/**
- * Message queue variables
+ * Message Queue variables
+ */
+
+/**
+ * Unique key of message queue.
*/
key_t qkey = 12356;
+
+/**
+ * Queue descriptor.
+ */
int qid;
+/**
+ * Structure holding queue message data.
+ * Parameter mtype describes process to whom message is sent.
+ * Parameter signo is a signal to raise after getting message.
+ */
struct queue_message {
long mtype;
int signo[1];
int shmid;
/**
- * Message shared by processes. Contains array of process IDs
+ * Structure holding array of process IDs.
+ * Message is shared by processes. Contains array of process IDs
*/
struct message {
pid_t pids[3];
struct message * processes = NULL;
/**
- * Message queue variables
+ * Message Queue variables
+ */
+
+/**
+ * Unique key of message queue.
*/
key_t qkey = 12356;
+
+/**
+ * Queue descriptor.
+ */
int qid;
+/**
+ * Structure holding queue message data.
+ * Parameter mtype describes process to whom message is sent.
+ * Parameter signo is a signal to raise after getting message.
+ */
struct queue_message {
long mtype;
int signo[1];