4 Created: Jan 3, 1992 by Philip Homburg
6 Copyright 1995 Philip Homburg
11 #include "generic/assert.h"
17 PRIVATE mq_t mq_list
[MQ_SIZE
];
18 PRIVATE mq_t
*mq_freelist
;
25 for (i
= 0; i
<MQ_SIZE
; i
++)
27 mq_list
[i
].mq_next
= mq_freelist
;
28 mq_freelist
= &mq_list
[i
];
29 mq_list
[i
].mq_allocated
= 0;
40 mq_freelist
= mq
->mq_next
;
42 assert(mq
->mq_allocated
== 0);
50 mq
->mq_next
= mq_freelist
;
52 assert(mq
->mq_allocated
== 1);
57 * $PchId: mq.c,v 1.7 1998/10/23 20:10:47 philip Exp $