#include <sys/util.h>
-typedef uint32_t xqindex;
+typedef uint64_t xqindex;
-#include "xq_lock.h"
+#include "xlock.h"
struct xq {
- struct xq_lock lock;
+ struct xlock lock;
xqindex head, tail;
XPTR_TYPE(xqindex) queue;
xqindex size;
int xq_check ( struct xq * xq,
xqindex idx,
unsigned long who );
+
+xqindex __xq_resize ( struct xq * xq,
+ struct xq * newxq);
+
+xqindex xq_resize ( struct xq * xq,
+ struct xq * newxq,
+ unsigned long who );
#endif