fix mt-mapperd pithos read bug. plus some minor fixes
[archipelago] / xseg / xtypes / xq.h
index 54116e5..c2307e7 100644 (file)
@@ -3,12 +3,12 @@
 
 #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;
@@ -94,5 +94,12 @@ int       __xq_check      ( struct xq  * xq,
 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