+const size_t MAX_THREADS = 128;
+const size_t MAX_SPLITPOINTS_PER_THREAD = 8;
+const size_t MAX_SLAVES_PER_SPLITPOINT = 4;
+
+
+/// Spinlock class wraps low level atomic operations to provide a spin lock
+
+class Spinlock {
+
+ Mutex m; // WARNING: Diasabled spinlocks to test on fishtest
+
+public:
+ void acquire() { m.lock(); }
+ void release() { m.unlock(); }
+};
+